/* Reset és alapértelmezett stílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9333ea;
    --primary-dark: #7e22ce;
    --primary-light: #a855f7;
    --secondary: #ec4899;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

/* Értesítések */
.notifications {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 90vw;
}

.notification {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--white);
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.notification.success { background: var(--success); }
.notification.error { background: var(--error); }
.notification.warning { background: var(--warning); }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Betöltő */
.loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loader.hidden {
    display: none;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gombok */
.btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-300);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-sm {
    padding: 0.75rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Input mezők */
.input-group {
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    ring: 2px;
    ring-color: rgba(147, 51, 234, 0.2);
}

.input:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

select.input {
    cursor: pointer;
}

textarea.input {
    min-height: 100px;
    resize: vertical;
}

/* Kártyák */
.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Navigáció */
.nav-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    overflow-x: auto;
    white-space: nowrap;
}

.nav-tabs-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
}

.nav-tab {
    padding: 0.875rem 1.5rem;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--gray-600);
}

.nav-tab:hover {
    color: var(--primary);
}

.nav-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Konténer */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Grid rendszer */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }

/* Auth oldal */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce7f3 0%, #e9d5ff 100%);
    padding: 1rem;
}

.auth-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

.auth-subtitle {
    color: var(--gray-600);
    margin-top: 0.5rem;
}

.auth-demo {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.75rem;
}

.auth-demo p {
    margin: 0.25rem 0;
}

/* Szolgáltatói kártya */
.provider-card {
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

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

.provider-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.provider-content {
    padding: 1rem;
}

.provider-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.provider-avatar {
    font-size: 2rem;
}

.provider-info {
    flex: 1;
}

.provider-name {
    font-weight: 700;
    font-size: 1.125rem;
}

.provider-specialty {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Szolgáltatás kártya */
.service-card {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.service-card.selected {
    border-color: var(--primary);
    background: rgba(147, 51, 234, 0.05);
}

.service-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Naptár */
.calendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-grid {
    display: grid;
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--gray-600);
    padding: 0.5rem;
    font-size: 0.875rem;
}

.calendar-day {
    min-height: 100px;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day:hover {
    border-color: var(--primary);
    background: rgba(147, 51, 234, 0.05);
}

.calendar-day.selected {
    border-color: var(--primary);
    background: rgba(147, 51, 234, 0.1);
}

.calendar-day.other-month {
    background: var(--gray-50);
    color: var(--gray-400);
}

.calendar-day-number {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.calendar-bookings {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-booking {
    background: rgba(147, 51, 234, 0.2);
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Időpont választó */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.time-slot {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.time-slot:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(147, 51, 234, 0.05);
}

.time-slot.selected {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.time-slot:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* Foglalás kártya */
.booking-card {
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.booking-card.confirmed {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.booking-card.cancelled {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.booking-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.booking-status.confirmed {
    background: var(--success);
    color: var(--white);
}

.booking-status.cancelled {
    background: var(--error);
    color: var(--white);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gray-700);
}

/* Logo stílusok */
.header-title img {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.auth-icon img {
    max-height: 80px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Admin listák */
.calendar-header-row,
.providers-header-row,
.services-header-row,
.customers-header-row,
.schedules-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 1rem;
    color: var(--white);
}

.calendar-title,
.providers-title,
.services-title,
.customers-title,
.schedules-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.btn-add-booking,
.btn-add-provider,
.btn-add-service,
.btn-add-customer {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.booking-admin-card,
.provider-admin-card,
.service-admin-card,
.customer-admin-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.booking-admin-card:hover,
.provider-admin-card:hover,
.service-admin-card:hover,
.customer-admin-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.booking-card-left,
.provider-card-left,
.service-card-left,
.customer-card-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.booking-time-section,
.provider-avatar-section,
.service-icon-section,
.customer-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.booking-admin-time {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    width: 70px;
    text-align: center;
}

.provider-admin-photo,
.provider-admin-avatar,
.service-admin-icon,
.customer-admin-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--gray-100);
}

.service-admin-icon {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.booking-status-badge,
.provider-status-badge,
.customer-status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.booking-status-badge.confirmed,
.provider-status-badge.active,
.customer-status-badge.active {
    background: var(--success);
    color: var(--white);
}

.booking-status-badge.cancelled,
.provider-status-badge.inactive,
.customer-status-badge.inactive {
    background: var(--error);
    color: var(--white);
}

.booking-admin-info,
.provider-admin-info,
.service-admin-info,
.customer-admin-info {
    flex: 1;
}

.booking-admin-customer,
.provider-admin-name,
.service-admin-name,
.customer-admin-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--gray-900);
}

.booking-admin-service,
.provider-admin-specialty,
.service-admin-provider {
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 0.75rem 0;
}

.booking-admin-details,
.service-admin-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.service-detail {
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.service-provider-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    background: var(--gray-100);
    color: var(--gray-700);
}

.booking-admin-contact,
.provider-admin-contact,
.customer-admin-contact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.customer-admin-date {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.booking-admin-actions,
.provider-admin-actions,
.service-admin-actions,
.customer-admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.booking-admin-actions .btn,
.provider-admin-actions .btn,
.service-admin-actions .btn,
.customer-admin-actions .btn {
    min-width: 100px;
    justify-content: center;
}

.btn-info {
    background: var(--secondary);
    color: var(--white);
}

.btn-info:hover:not(:disabled) {
    background: #d91976;
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.modal-large {
    max-width: 800px;
}

/* Munkaidő kezelés */
.schedule-calendar-day {
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: var(--white);
    transition: all 0.2s ease;
    position: relative;
}

.schedule-calendar-day:not(.other-month):hover {
    border-color: var(--primary);
    background: rgba(147, 51, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.schedule-calendar-day.other-month {
    background: var(--gray-50);
}

.schedule-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.schedule-indicator {
    border-radius: 0.375rem;
    color: var(--black);
    text-align: center;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: default;
}

.schedule-indicator:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.schedule-item {
    transition: all 0.2s;
    background: var(--gray-50);
}

.schedule-item:hover {
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.bg-green-500 { background: #10b981; }
.bg-yellow-500 { background: #f59e0b; }
.bg-red-500 { background: #ef4444; }
.bg-green-100 { background: #d1fae5; }
.bg-green-800 { color: #065f46; }
.bg-yellow-100 { background: #fef3c7; }
.bg-yellow-800 { color: #92400e; }
.bg-red-100 { background: #fee2e2; }
.bg-red-800 { color: #991b1b; }

/* Utility osztályok */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-primary { color: var(--primary); }
.w-full { width: 100%; }
.flex-1 { flex: 1; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Responsive design */
@media (max-width: 1024px) {
    .calendar-header-row,
    .providers-header-row,
    .services-header-row,
    .customers-header-row,
    .schedules-header-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.25rem;
    }
    
    .calendar-title,
    .providers-title,
    .services-title,
    .customers-title,
    .schedules-title {
        font-size: 1.5rem;
    }
    
    .btn-add-booking,
    .btn-add-provider,
    .btn-add-service,
    .btn-add-customer {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .booking-admin-actions,
    .provider-admin-actions,
    .service-admin-actions,
    .customer-admin-actions {
        flex-direction: column;
        min-width: 120px;
    }
    
    .booking-admin-actions .btn,
    .provider-admin-actions .btn,
    .service-admin-actions .btn,
    .customer-admin-actions .btn {
        min-width: unset;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .schedule-calendar-day {
        min-height: 100px !important;
    }
    
    .schedule-indicator {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.2rem !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .grid-cols-2,
    .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .header-title h1 {
        font-size: 1.125rem;
    }
    
    .header-title img {
        height: 32px;
        max-width: 160px;
    }
    
    .nav-tab {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .calendar-header-row,
    .providers-header-row,
    .services-header-row,
    .customers-header-row {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .calendar-title,
    .providers-title,
    .services-title,
    .customers-title {
        font-size: 1.25rem;
    }
    
    .btn-add-booking,
    .btn-add-provider,
    .btn-add-service,
    .btn-add-customer {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 0.375rem;
    }
    
    .calendar-day-number {
        font-size: 0.875rem;
    }
    
    .calendar-booking {
        font-size: 0.65rem;
        padding: 0.2rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .time-slot {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .modal {
        padding: 1.25rem;
        max-height: 85vh;
        margin: 0.5rem;
    }
    
    .modal-large {
        max-width: 100%;
        margin: 0.5rem;
    }
    
    .modal-header {
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-close {
        font-size: 1.75rem;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .input-group {
        margin-bottom: 1rem;
    }
    
    .input-label {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    .input,
    select.input,
    textarea.input {
        padding: 0.75rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .grid.grid-cols-1.md\:grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    form .btn {
        min-height: 44px;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    form .flex.gap-2 {
        flex-direction: column;
        gap: 0.625rem;
    }
    
    form .flex.gap-2 .btn {
        width: 100%;
    }
    
    form .flex.gap-2 .btn.flex-1 {
        flex: none;
    }
    
    .booking-admin-card,
    .provider-admin-card,
    .service-admin-card,
    .customer-admin-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        text-align: left;
    }
    
    .booking-card-left,
    .provider-card-left,
    .service-card-left,
    .customer-card-left {
        flex-direction: column;
        text-align: left;
        width: 100%;
        gap: 1rem;
    }
    
    .booking-time-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0.75rem;
        background: var(--gray-50);
        border-radius: 0.5rem;
    }
    
    .booking-admin-time {
        font-size: 1.75rem;
        width: auto;
    }
    
    .booking-status-badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.625rem;
        white-space: nowrap;
    }
    
    .booking-admin-info,
    .provider-admin-info,
    .service-admin-info,
    .customer-admin-info {
        width: 100%;
    }
    
    .booking-admin-customer,
    .provider-admin-name,
    .service-admin-name,
    .customer-admin-name {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }
    
    .booking-admin-service,
    .provider-admin-specialty,
    .service-admin-provider {
        font-size: 0.9375rem;
        margin-bottom: 0.625rem;
    }
    
    .booking-admin-details {
        flex-wrap: wrap;
        gap: 0.75rem;
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }
    
    .booking-admin-contact,
    .provider-admin-contact,
    .customer-admin-contact {
        align-items: flex-start;
        font-size: 0.8125rem;
        gap: 0.375rem;
    }
    
    .provider-avatar-section,
    .service-icon-section,
    .customer-avatar-section {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .provider-admin-photo,
    .provider-admin-avatar,
    .service-admin-icon,
    .customer-admin-avatar {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .provider-status-badge,
    .customer-status-badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.625rem;
    }
    
    .service-admin-details {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .service-detail {
        font-size: 0.8125rem;
    }
    
    .booking-admin-actions,
    .provider-admin-actions,
    .service-admin-actions,
    .customer-admin-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .booking-admin-actions .btn,
    .provider-admin-actions .btn,
    .service-admin-actions .btn,
    .customer-admin-actions .btn {
        width: 100%;
        min-width: unset;
        padding: 0.875rem 0.5rem;
        font-size: 0.8125rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .customer-admin-actions .btn:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-icon {
        font-size: 2.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-icon img {
        max-height: 60px;
        max-width: 150px;
    }
    
    .provider-image {
        height: 150px;
    }
    
    .modal {
        padding: 1.5rem;
    }
    
    .header-title img {
        height: 28px;
        max-width: 140px;
    }
    
    .calendar-day {
        min-height: 70px;
        padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
    }
    
    .calendar-header-row,
    .providers-header-row,
    .services-header-row,
    .customers-header-row {
        padding: 0.875rem;
    }
    
    .calendar-title,
    .providers-title,
    .services-title,
    .customers-title {
        font-size: 1.125rem;
    }
    
    .btn-add-booking,
    .btn-add-provider,
    .btn-add-service,
    .btn-add-customer {
        font-size: 0.8125rem;
        padding: 0.75rem 0.875rem;
    }
    
    .booking-admin-card,
    .provider-admin-card,
    .service-admin-card,
    .customer-admin-card {
        padding: 1rem;
    }
    
    .booking-admin-time {
        font-size: 1.5rem;
    }
    
    .booking-admin-customer,
    .provider-admin-name,
    .service-admin-name,
    .customer-admin-name {
        font-size: 1rem;
    }
    
    .booking-admin-actions,
    .provider-admin-actions,
    .service-admin-actions,
    .customer-admin-actions {
        gap: 0.5rem;
    }
    
    .booking-admin-actions .btn,
    .provider-admin-actions .btn,
    .service-admin-actions .btn,
    .customer-admin-actions .btn {
        font-size: 0.75rem;
        padding: 0.75rem 0.375rem;
    }
    
    .provider-admin-photo,
    .provider-admin-avatar,
    .customer-admin-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .service-admin-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .schedule-calendar-day {
        min-height: 65px !important;
        padding: 0.25rem;
    }
    
    .schedule-indicator {
        font-size: 0.625rem !important;
        padding: 0.25rem 0.125rem !important;
    }
    
    .calendar-day-header {
        font-size: 0.6875rem !important;
        padding: 0.375rem 0.25rem !important;
    }
}