/* ciitalia - Base CSS Variables and Global Styles */

:root {
    /* Brand Colors */
    --primary-color: #3411858d;
    --secondary-color: #8b3a63a9;
    --accent-color: #f59e0b;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    
    /* Status Colors */
    --success-color: #34904a;
    --warning-color: #e0c881;
    --danger-color: #b50314;
    --info-color: #1b92a4;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Border Radius */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    color: #333;
}

/* Utility Classes */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Body & Layout */
body {
    background: #f7fafc;
    color: #2d3748;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Forms */
.form-modern {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
}

.form-label {
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Tables */
.table-modern {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table-modern thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-modern tbody tr {
    transition: background var(--transition-base);
}

.table-modern tbody tr:hover {
    background: #f8f9fa;
}

.table-modern tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Alerts */
.alert-modern {
    border-radius: var(--border-radius-lg);
    border: none;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Modals */
.modal-content {
    border-radius: var(--border-radius-xl);
    border: none;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

/* Booking/Calendar Specific */
.booking-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

#calendar {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.fc-event {
    cursor: pointer;
}

/* Calendar Legend */
.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Modal Body Styles */
.modal-body dl {
    margin: 0;
}

.modal-body dt {
    font-weight: 600;
    margin-top: 10px;
}

.modal-body dd {
    margin-left: 0;
    margin-bottom: 0;
}

/* Dashboard Stats */
.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Quick Action Cards */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Modern Card Styles */
.card-modern {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

/* Booking Cards */
.booking-card {
    transition: all 0.2s ease;
    border-left: 3px solid transparent !important;
}

.booking-card:hover {
    background-color: #f8f9fa;
    border-left-color: var(--primary-color) !important;
    transform: translateX(5px);
}

.booking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.booking-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f8f9fa;
    flex-shrink: 0;
}

.booking-date-badge {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 60px;
}

/* Staff Mini Cards */
.staff-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.staff-mini-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.staff-mini-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.staff-mini-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.staff-mini-info {
    flex-grow: 1;
    min-width: 0;
}

/* Staff Avatar Large (for booking page) */
.staff-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.staff-avatar-large-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    border: 3px solid #f8f9fa;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.staff-selection-card {
    transition: all 0.3s ease;
}

.staff-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Service Cards */
.service-card {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    background: white;
    box-shadow: var(--shadow-sm);
}

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

.service-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

/* Hero Section (for home pages) */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    border-radius: var(--border-radius-xl);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Booking Status Cards */
.booking-status-pending {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.booking-status-confirmed {
    background-color: #d1e7dd;
    border-left: 4px solid var(--success-color);
}

.booking-status-completed {
    background-color: #e2e3e5;
    border-left: 4px solid #6c757d;
}

.booking-status-canceled {
    background-color: #f8d7da;
    border-left: 4px solid var(--danger-color);
}

/* Print Styles */
@media print {
    .btn, .navbar, .footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card, .modal-content {
        box-shadow: none !important;
        border: 1px solid #dee2e6;
    }
}
