/* ==========================================
   MODERN CUSTOMER APPOINTMENT DESIGN SYSTEM
   ========================================== */

:root {
    /* Primary Colors - matching professional theme but slightly softer for customers */
    --customer-primary: #6366f1;
    --customer-primary-dark: #4f46e5;
    --customer-primary-light: #818cf8;
    --customer-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* Base Styles */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modern Card Styling */
.modern-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.modern-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--customer-primary-light);
}

.modern-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: white;
}

.modern-card-body {
    padding: 1.5rem;
}

/* Professional Card (for listing) */
.professional-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.professional-avatar-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.professional-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.professional-status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border: 3px solid white;
    border-radius: 50%;
}

/* Modern Buttons */
.btn-modern-primary {
    background: var(--customer-gradient);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
    color: white;
    opacity: 0.95;
}

.btn-modern-outline {
    background: transparent;
    color: var(--customer-primary);
    border: 2px solid var(--customer-primary);
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-modern-outline:hover {
    background: var(--customer-primary);
    color: white;
}

/* Form Styling */
.modern-form-control {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.modern-form-control:focus {
    background: white;
    border-color: var(--customer-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Badge Styling */
.modern-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-badge-primary {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca; /* Darker Indigo */
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.modern-badge-white {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Status Badge Text Fix */
.badge.bg-warning.bg-opacity-10 {
    color: #000 !important;
}

/* Utilities */
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }

/* Rating Stars */
.star-rating i {
    color: #f59e0b;
    margin-right: 2px;
}

.star-rating i.empty {
    color: var(--gray-300);
}

/* Appointment List Item */
.appointment-list-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--gray-100);
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.appointment-list-item:hover {
    border-color: var(--customer-primary-light);
    box-shadow: var(--shadow-md);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-pill {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.filter-pill:hover, .filter-pill.active {
    background: var(--customer-primary);
    border-color: var(--customer-primary);
    color: white;
}
