/* Minimal Appointments Grid - Clean Design */
.appointments-grid {
    display: block;
    width: 100%;
}

.appointments-grid .col-12 {
    padding: 0.12rem 0;
    width: 100%;
}

/* Minimal card styling */
.appointments-grid .card {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

.appointments-grid .card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Disabled/past appointment styling */
.appointments-grid .card.past-appointment {
    background: #f8f9fa;
    opacity: 0.6;
    border-color: #dee2e6;
}

.appointments-grid .card.past-appointment:hover {
    box-shadow: none;
}

.appointments-grid .card.past-appointment .service-title {
    color: #6c757d;
}

.appointments-grid .card.past-appointment .price-badge {
    background: #6c757d;
}

.appointments-grid .card.past-appointment .date-time {
    color: #6c757d;
}

.appointments-grid .card.past-appointment .day-name {
    color: #adb5bd;
}

/* Remove all card headers - keep it minimal */
.appointments-grid .card-header {
    display: none;
}

/* Minimal card body - single row layout on desktop */
.appointments-grid .card-body {
    padding: 0.75rem;
}

/* Desktop: Single row layout */
@media (min-width: 1200px) {
    .appointments-grid .appointment-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    
    .appointments-grid .appointment-date {
        flex: 0 0 100px;
    }
    
    .appointments-grid .appointment-service {
        flex: 1;
        min-width: 0;
    }
    
    .appointments-grid .appointment-price {
        flex: 0 0 70px;
        text-align: center;
    }
    
    .appointments-grid .appointment-client {
        flex: 0 0 180px;
        text-align: center;
    }
    
    .appointments-grid .appointment-actions {
        flex: 0 0 130px;
        text-align: right;
    }
}

/* Mobile/Tablet: Multi-row layout for screens under 1200px */
@media (max-width: 1199.98px) {
    .appointments-grid .appointment-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 0.75rem;
        align-items: start;
    }
    
    .appointments-grid .appointment-date {
        grid-column: 1;
        font-weight: 600;
        color: #495057;
    }
    
    .appointments-grid .appointment-service {
        grid-column: 2;
    }
    
    .appointments-grid .appointment-price {
        grid-column: 1;
        justify-self: start;
    }
    
    .appointments-grid .appointment-client {
        grid-column: 2;
        justify-self: start;
    }
    
    .appointments-grid .appointment-actions {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: 0.5rem;
    }
    
    .appointments-grid .appointment-actions .btn {
        margin-left: 0.25rem;
        margin-bottom: 0;
    }
}

/* Date styling for both desktop and mobile */
.appointments-grid .date-time {
    font-size: 1.10rem!important;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
}

.appointments-grid .day-name {
    font-size: 1.00rem;
    color: #6c757d;
    margin-top: 0.1rem;
    cursor: pointer;
}

/* Service title styling */
.appointments-grid .service-title {
    font-weight: 500;
    color: #e75393;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Price badge - minimal */
.appointments-grid .price-badge {
    background: #e75393;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Client status styling */
.appointments-grid .client-status {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
}

.appointments-grid .client-status.own-client {
    background: #e3f2fd;
    color: #1976d2;
}

.appointments-grid .client-status.searching {
    background: #fff3e0;
    color: #f57c00;
}

.appointments-grid .client-status.found {
    background: #e8f5e8;
    color: #2e7d32;
}

/* Action buttons container */
.appointments-grid .appointment-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    align-items: center;
}

.appointments-grid .appointment-actions .btn {
    white-space: nowrap;
    flex-shrink: 0;
}
.appointments-grid .btn-minimal {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    margin-left: 0.2rem;
    text-decoration: none;
    display: inline-block;
}

.appointments-grid .btn-minimal:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.appointments-grid .btn-minimal.btn-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.appointments-grid .btn-minimal.btn-danger:hover {
    background: #dc3545;
    color: white;
}

.appointments-grid .btn-minimal.btn-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.appointments-grid .btn-minimal.btn-info:hover {
    background: #17a2b8;
    color: white;
}

.appointments-grid .btn-minimal.btn-primary {
    border-color: #2baab1;
    color: #2baab1;
}

.appointments-grid .btn-minimal.btn-primary:hover {
    background: #2baab1;
    color: white;
}

/* Disabled button styling */
.appointments-grid .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

.appointments-grid .btn:disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* Phone button styling */
.appointments-grid .phone-btn {
    background: none;
    border: none;
    color: #2baab1;
    padding: 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
}

.appointments-grid .phone-btn:hover {
    color: #29a0a7;
}

/* Empty state - minimal */
.appointments-grid + .text-center {
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.appointments-grid + .text-center .fa-3x {
    font-size: 3rem;
    color: #6c757d;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.appointments-grid + .text-center h4 {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.appointments-grid + .text-center p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.appointments-grid + .text-center .btn-primary {
    background: #2baab1;
    border-color: #2baab1;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
}

.appointments-grid + .text-center .btn-primary:hover {
    background: #29a0a7;
    border-color: #29a0a7;
}

/* Pagination styling wrapper */
.appointments-pagination {
    margin-top: 1rem;
}
.appointments-pagination .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.appointments-pagination .pagination > li > a,
.appointments-pagination .pagination > li > span {
    border: 1px solid #e9ecef;
    background: #fff;
    color: #495057;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
}
.appointments-pagination .pagination > li.active > span,
.appointments-pagination .pagination > li.active > span:hover,
.appointments-pagination .pagination > li.active > a,
.appointments-pagination .pagination > li.active > a:hover {
    background: #e75393;
    border-color: #e75393;
    color: #fff;
}
.appointments-pagination .pagination > li > a:focus,
.appointments-pagination .pagination > li > span:focus,
.appointments-pagination .pagination > li > a:active,
.appointments-pagination .pagination > li > span:active,
.appointments-pagination .pagination > li > a:focus-visible,
.appointments-pagination .pagination > li > span:focus-visible {
    outline: none;
    box-shadow: none;
}
.appointments-pagination .pagination > li > a:hover {
    background: #f8f9fa;
    color: #495057;
}
.appointments-pagination .pagination > li.disabled > span,
.appointments-pagination .pagination > li.disabled > a {
    opacity: 0.6;
    cursor: not-allowed;
}
