/**
 * Customer Dashboard Styles
 *
 * @since 2.0.87
 */

/* Dashboard Container */
.quickcal-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Dashboard Header */
.quickcal-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
}

.quickcal-dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quickcal-user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quickcal-user-info {
    display: flex;
    flex-direction: column;
}

.quickcal-welcome-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.quickcal-user-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* Buttons */
.quickcal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.quickcal-btn-primary {
    background: linear-gradient(135deg, #56C477, #3d9d5c);
    color: #fff;
}

.quickcal-btn-primary:hover {
    background: linear-gradient(135deg, #4ab369, #358a51);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86, 196, 119, 0.3);
}

.quickcal-btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* Stats Cards */
.quickcal-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.quickcal-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quickcal-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quickcal-stat-icon--dogs {
    background: linear-gradient(135deg, #56C477, #3d9d5c);
    color: #fff;
}

.quickcal-stat-icon--appointments {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: #fff;
}

.quickcal-stat-content {
    display: flex;
    flex-direction: column;
}

.quickcal-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.quickcal-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Progress Tracking Section */
.quickcal-progress-tracking-section {
    margin-bottom: 30px;
}

.quickcal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.quickcal-section-title i {
    color: #56C477;
}

/* Dashboard Content Grid */
.quickcal-dashboard-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Dashboard Cards */
.quickcal-dashboard-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.quickcal-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.quickcal-card-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.quickcal-card-header h2 i {
    color: #56C477;
}

.quickcal-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #56C477;
    color: #fff;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.quickcal-card-body {
    padding: 24px;
}

/* Empty State */
.quickcal-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.quickcal-empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.quickcal-empty-state h3 {
    font-size: 18px;
    color: #666;
    margin: 0 0 8px 0;
}

.quickcal-empty-state p {
    color: #888;
    margin: 0 0 20px 0;
}

/* Appointments List */
.quickcal-appointments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quickcal-appointment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.quickcal-appointment-item:hover {
    background: #f0f2f4;
}

.quickcal-appointment--pending {
    border-left: 3px solid #FF9800;
}

.quickcal-appointment-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quickcal-date-month {
    font-size: 11px;
    font-weight: 600;
    color: #56C477;
    text-transform: uppercase;
}

.quickcal-date-day {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.quickcal-date-weekday {
    font-size: 11px;
    color: #888;
}

.quickcal-appointment-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quickcal-appointment-service {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.quickcal-appointment-time,
.quickcal-appointment-dog {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.quickcal-appointment-time i,
.quickcal-appointment-dog i {
    font-size: 12px;
    color: #888;
}

.quickcal-appointment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Status Badges */
.quickcal-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.quickcal-status--confirmed {
    background: rgba(86, 196, 119, 0.15);
    color: #3d9d5c;
}

.quickcal-status--pending {
    background: rgba(255, 152, 0, 0.15);
    color: #e68900;
}

/* Cancel Button */
.quickcal-cancel-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quickcal-cancel-btn:hover {
    background: #fee;
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Dogs Wrapper */
.quickcal-dogs-wrapper {
    /* Allow QuickCal's my-dogs styling to take over */
}

/* Quick Actions */
.quickcal-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.quickcal-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.quickcal-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.quickcal-action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #56C477, #3d9d5c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.quickcal-action--logout .quickcal-action-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.quickcal-action-card span {
    font-size: 14px;
    font-weight: 600;
}

/* Login Prompt */
.quickcal-dashboard-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.quickcal-login-card {
    max-width: 400px;
    text-align: center;
    padding: 48px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.quickcal-login-icon {
    font-size: 64px;
    color: #56C477;
    margin-bottom: 24px;
}

.quickcal-login-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.quickcal-login-card p {
    color: #666;
    margin: 0 0 24px 0;
}

.quickcal-login-register {
    font-size: 14px;
    color: #888;
    margin-top: 16px !important;
}

.quickcal-login-register a {
    color: #56C477;
    font-weight: 600;
}

/* Modal */
.quickcal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quickcal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.quickcal-modal-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.quickcal-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quickcal-modal-close:hover {
    background: #eee;
    color: #333;
}

.quickcal-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.quickcal-modal-icon--warning {
    color: #e74c3c;
}

.quickcal-modal-icon--success {
    color: #56C477;
}

.quickcal-modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.quickcal-modal-message {
    color: #666;
    margin: 0 0 24px 0;
}

.quickcal-modal-form-group {
    text-align: left;
    margin-bottom: 24px;
}

.quickcal-modal-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.quickcal-modal-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.quickcal-modal-form-group textarea:focus {
    outline: none;
    border-color: #56C477;
}

.quickcal-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.quickcal-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quickcal-modal-btn--secondary {
    background: #f5f5f5;
    color: #666;
}

.quickcal-modal-btn--secondary:hover {
    background: #eee;
}

.quickcal-modal-btn--primary {
    background: linear-gradient(135deg, #56C477, #3d9d5c);
    color: #fff;
}

.quickcal-modal-btn--primary:hover {
    background: linear-gradient(135deg, #4ab369, #358a51);
}

.quickcal-modal-btn--danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.quickcal-modal-btn--danger:hover {
    background: linear-gradient(135deg, #d63c2f, #a93226);
}

.quickcal-modal-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Booking Modal - Larger for calendar */
.quickcal-booking-modal-content {
    width: 95%;
    max-width: 900px;
    min-height: 500px;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.quickcal-booking-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    flex-shrink: 0;
}

.quickcal-booking-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.quickcal-booking-modal-header h3 i {
    color: #56C477;
}

.quickcal-booking-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    min-height: 400px;
}

/* Loading state */
.quickcal-booking-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    gap: 16px;
}

.quickcal-booking-modal-loading i {
    font-size: 32px;
    color: #56C477;
}

/* Ensure calendar fits nicely in modal */
.quickcal-booking-modal-calendar .booked-calendar-wrap {
    margin: 0;
}

.quickcal-booking-modal-calendar .booked-calendar-shortcode-wrap {
    margin: 0;
}

/* Calendar inside modal adjustments */
.quickcal-booking-modal-calendar .booked-calendar {
    box-shadow: none;
    border: 1px solid #eee;
    border-radius: 12px;
}

/* Action card button styling (for modal trigger) */
button.quickcal-action-card {
    background: #fff;
    cursor: pointer;
    border: none;
}

button.quickcal-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Prevent body scroll when modal is open */
body.quickcal-modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quickcal-dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .quickcal-dashboard-welcome {
        flex-direction: column;
    }

    .quickcal-user-info h1 {
        font-size: 22px;
    }

    .quickcal-dashboard-content {
        grid-template-columns: 1fr;
    }

    .quickcal-appointment-item {
        flex-wrap: wrap;
    }

    .quickcal-appointment-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .quickcal-modal-content {
        padding: 24px;
    }

    .quickcal-modal-actions {
        flex-direction: column;
    }

    .quickcal-modal-btn {
        width: 100%;
    }

    /* Booking modal responsive */
    .quickcal-booking-modal-content {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .quickcal-booking-modal-body {
        padding: 16px;
        min-height: auto;
    }

    .quickcal-booking-modal-header {
        padding: 16px;
    }
}
