/* ==============================================
   Studio Booking - Main Stylesheet
   Mobile-first responsive design
   ============================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-radius: 8px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==============================================
   Header
   ============================================== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

.nav-link-admin {
    color: var(--primary);
}

/* ==============================================
   Main Content
   ============================================== */
.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* ==============================================
   Footer
   ============================================== */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    margin: 0 1rem;
}

/* ==============================================
   Alerts
   ============================================== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
}

/* ==============================================
   Buttons
   ============================================== */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: #475569;
    text-decoration: none;
}

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

.btn-danger:hover {
    background: #dc2626;
    text-decoration: none;
}

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

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

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

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==============================================
   Forms
   ============================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.625rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    resize: vertical;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ==============================================
   Hero Section
   ============================================== */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* ==============================================
   Services
   ============================================== */
.services-section {
    margin-bottom: 4rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.service-title {
    font-size: 1.5rem;
    margin: 0;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.service-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
}

.service-detail {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
}

/* ==============================================
   Steps
   ============================================== */
.info-section {
    background: var(--bg-white);
    padding: 3rem 1rem;
    border-radius: var(--border-radius);
    margin: 4rem 0;
}

.steps-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-top: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 auto 1rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    margin: 0;
}

/* ==============================================
   Page Header
   ============================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    margin: 0;
}

/* ==============================================
   Empty State
   ============================================== */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
}

/* ==============================================
   Calendar & Booking
   ============================================== */
.service-selector {
    margin-bottom: 2rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.selected-service-info {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.selected-service-info h3 {
    margin-bottom: 1rem;
}

.service-info-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-info-details span {
    color: var(--text-secondary);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-week {
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-container,
.timeslots-container {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    min-height: 300px;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Booking Summary */
.booking-summary {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.booking-summary h2 {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
}

.summary-value {
    font-weight: 600;
}

.summary-price {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Booking Form */
.booking-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.booking-form h2 {
    margin-bottom: 1.5rem;
}

/* Success Page */
.success-header {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 1rem;
    background: var(--success);
    color: white;
    border-radius: 50%;
    font-size: 3rem;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.booking-details-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.booking-code-section {
    text-align: center;
    padding: 2rem 0;
}

.booking-code {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 1rem 0;
    background: var(--bg-gray);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    color: var(--primary);
}

.booking-code-help {
    display: block;
    color: var(--text-muted);
}

.divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 500;
}

.detail-price {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-box {
    background: #dbeafe;
    border-left: 4px solid var(--info);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.info-box h3 {
    margin-bottom: 1rem;
    color: #1e40af;
}

.info-box p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-box-note {
    font-weight: 600;
    margin-top: 1rem;
}

.info-box-warning {
    background: #fef3c7;
    border-left-color: var(--warning);
}

.info-box-warning h3 {
    color: #92400e;
}

/* Cancel Form */
.cancel-form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.help-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.help-item {
    margin-bottom: 1.5rem;
}

.help-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.help-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* ==============================================
   Admin Layout
   ============================================== */
.admin-body {
    background: var(--bg-body);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.admin-user {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s;
}

.sidebar-link:hover {
    background: var(--bg-gray);
    text-decoration: none;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    font-weight: 600;
    border-left: 4px solid #60a5fa;
}

.sidebar-link.active:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.sidebar-link span {
    font-size: 1.25rem;
}

.sidebar-link-logout {
    color: var(--danger);
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1rem 0;
}

/* Admin Content */
.admin-content {
    flex: 1;
    margin-left: 250px;
}

.admin-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 99;
}

.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    margin: 0;
    font-size: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.admin-page-content {
    padding: 2rem;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ==============================================
   Admin Components
   ============================================== */

/* Stats Cards */
.stats-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card-primary { border-left: 4px solid var(--primary); }
.stat-card-success { border-left: 4px solid var(--success); }
.stat-card-info { border-left: 4px solid var(--info); }
.stat-card-warning { border-left: 4px solid var(--warning); }

/* Quick Actions */
.quick-actions {
    margin-bottom: 3rem;
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
}

.quick-actions-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.quick-action-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.quick-action-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quick-action-label {
    display: block;
    font-weight: 600;
}

/* Dashboard Section */
.dashboard-section {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.activity-summary {
    margin-bottom: 1.5rem;
}

.activity-summary p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* Page Actions */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-actions-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--text-primary);
}

.table tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.row-cancelled {
    opacity: 0.6;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: #e2e8f0;
    color: #475569;
}

/* Text Utilities */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* Filters */
.filters-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filters-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
}

/* Bookings Summary */
.bookings-summary {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bookings-summary .summary-item {
    border: none;
    padding: 0;
}

/* Booking Detail Section */
.booking-detail-section {
    margin-bottom: 2rem;
}

.booking-detail-section h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--primary);
}

.booking-detail-section .detail-item {
    padding: 0.5rem 0;
}

code.booking-code {
    background: var(--bg-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

/* Calendar Views */
.calendar-week-view {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 2rem;
}

.calendar-day {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.calendar-day-header {
    background: var(--bg-gray);
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.calendar-day-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.calendar-day-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.calendar-day-slots {
    padding: 0.5rem;
    min-height: 200px;
}

.calendar-no-slots {
    text-align: center;
    padding: 2rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.calendar-slot {
    background: var(--bg-gray);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-slot:hover {
    background: #e2e8f0;
}

.slot-time {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.slot-service {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.slot-capacity {
    font-size: 0.75rem;
}

.calendar-day-view {
    display: none;
}

/* Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

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

.login-header h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-header h2 {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.login-form {
    margin-bottom: 1.5rem;
}

.login-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.login-back-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.login-back-link:hover {
    color: var(--primary);
}

/* ==============================================
   Responsive - Tablet
   ============================================== */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title { font-size: 3rem; }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-form {
        grid-template-columns: 2fr 2fr 1.5fr auto;
        align-items: end;
    }
}

/* ==============================================
   Responsive - Desktop
   ============================================== */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .calendar-week-view {
        display: grid;
    }
}

/* ==============================================
   Responsive - Mobile
   ============================================== */
@media (max-width: 767px) {
    .nav {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* Admin Mobile */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: var(--shadow-lg);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        width: 100%;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .admin-page-content {
        padding: 1rem;
    }
    
    .admin-header {
        padding: 1rem;
    }
    
    .admin-title {
        font-size: 1.25rem;
    }
    
    .stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-week-view {
        display: none;
    }
    
    .calendar-day-view {
        display: block;
    }
    
    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-actions-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==============================================
   PWA Install Button
   ============================================== */
.btn-install {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 1rem;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.4);
}

.btn-install:active {
    transform: translateY(0);
}

@media (max-width: 767px) {
    .btn-install {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* ==============================================
   ADMIN BOOKING CALENDAR (v2_30)
   ============================================== */

/* Container */
.admin-booking-calendar-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Calendar Header */
/* ============================================
   ADMIN BOOKING CALENDAR - MODERN DESIGN
   ============================================ */

.admin-booking-calendar-container {
    padding: 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Calendar Controls Bar */
.calendar-controls {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.calendar-controls > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.calendar-controls label {
    font-weight: 600;
    color: #475569;
    font-size: 14px;
}

.calendar-controls select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.calendar-controls select:hover {
    border-color: #cbd5e1;
}

.calendar-controls select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#currentDateDisplay {
    font-weight: 700;
    font-size: 18px;
    color: #0f172a;
    min-width: 220px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Calendar Grid - Week View */
.calendar-grid-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    margin-top: 0;
}

.calendar-day-column {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 200px;
}

.calendar-day-column:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.calendar-day-header {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.calendar-day-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-10px, -10px);
    }
}

.calendar-day-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    opacity: 0.95;
    font-weight: 600;
}

.calendar-day-date {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Calendar Time Slots */
.calendar-time-slots {
    padding: 12px;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.calendar-time-slots::-webkit-scrollbar {
    width: 6px;
}

.calendar-time-slots::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.calendar-time-slots::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.calendar-time-slots::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.calendar-time-slot {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.calendar-time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: all 0.3s ease;
}

.calendar-time-slot:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

/* Time Slot Status Colors */
.slot-available {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #86efac;
}

.slot-available::before {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.slot-available:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.slot-partial {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border-color: #fcd34d;
}

.slot-partial::before {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.slot-partial:hover {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
}

.slot-full {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fca5a5;
    opacity: 0.75;
}

.slot-full::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.slot-full:hover {
    opacity: 1;
    border-color: #ef4444;
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
}

.slot-time {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.slot-time::before {
    content: '🕐';
    font-size: 16px;
}

.slot-service {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
    line-height: 1.4;
}

.slot-capacity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.slot-capacity span {
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
}

/* Calendar Grid - Day View */
.calendar-grid-day {
    margin-top: 0;
}

.calendar-grid-day .calendar-day-column {
    max-width: 700px;
    margin: 0 auto;
}

.calendar-grid-day .calendar-time-slot {
    padding: 18px;
}

.calendar-grid-day .slot-time {
    font-size: 20px;
}

.calendar-grid-day .slot-service {
    font-size: 15px;
}

/* Loading Indicator */
#loadingIndicator {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

#loadingIndicator > div:first-child {
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* Booking Items in Modal */
.booking-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-item:hover {
    background: #f8fafc;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.booking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.booking-item-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.booking-item-details {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: -1px;
}

.autocomplete-item {
    padding: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.autocomplete-item:hover {
    background: #f8fafc;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item strong {
    display: block;
    color: #1e293b;
    margin-bottom: 4px;
}

.autocomplete-item small {
    color: #64748b;
    font-size: 12px;
}

/* Modal Enhancements for Calendar */
.modal {
    animation: fadeIn 0.2s ease;
}

.modal-content {
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Toggle Buttons */
.btn-toggle {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-toggle.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Capacity Edit Form */
#capacityEditForm {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

/* New User Form */
#newUserForm {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #3b82f6;
}

.toast.warning {
    background: #f59e0b;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==============================================
   RESPONSIVE - TABLET (481px - 768px)
   ============================================== */
@media (max-width: 768px) {
    .calendar-grid-week {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .calendar-day-header {
        padding: 12px 8px;
    }
    
    .calendar-day-name {
        font-size: 11px;
        letter-spacing: 0.5px;
    }
    
    .calendar-day-date {
        font-size: 18px;
    }
    
    .calendar-time-slot {
        padding: 12px;
    }
    
    .slot-time {
        font-size: 16px;
    }
    
    .slot-service {
        font-size: 12px;
    }
    
    .calendar-controls {
        padding: 16px;
    }
    
    .calendar-header h2 {
        font-size: 24px;
    }
    
    #currentDateDisplay {
        font-size: 16px;
        min-width: 180px;
    }
    
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

/* ==============================================
   RESPONSIVE - MOBILE (<481px)
   ============================================== */
@media (max-width: 480px) {
    .admin-booking-calendar-container {
        padding: 0;
    }
    
    .calendar-grid-week {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .calendar-header h2 {
        font-size: 22px;
    }
    
    .calendar-controls {
        padding: 16px;
    }
    
    .calendar-controls > div {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
    }
    
    .calendar-controls select,
    .calendar-controls button {
        width: 100%;
    }
    
    #currentDateDisplay {
        font-size: 16px;
        min-width: auto;
    }
    
    #viewToggle {
        display: none !important;
    }
    
    .calendar-day-column {
        border-radius: 10px;
    }
    
    .calendar-day-header {
        padding: 14px 12px;
    }
    
    .calendar-time-slots {
        padding: 10px;
        max-height: 400px;
    }
    
    .calendar-time-slot {
        padding: 14px;
        margin-bottom: 8px;
    }
    
    .slot-time {
        font-size: 16px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .booking-item {
        padding: 10px;
    }
    
    .autocomplete-dropdown {
        max-height: 200px;
    }
}

/* ==============================================
   MODAL ENHANCEMENTS
   ============================================== */

/* Modal megjelenítés flex-szel */
.modal[style*="display: block"] {
    display: flex !important;
}

/* Modal close button (X) */
.modal .close {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal .close:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Form labels egységesítése */
.modal label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 14px;
}

/* Form control egységesítése */
.modal .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.modal .form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Checkbox stílus javítása */
.modal input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #6366f1;
}

/* Info boxok stílusai */
.modal .info-box {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
}

.modal .info-box-blue {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    color: #0c4a6e;
}

.modal .info-box-green {
    background: #dcfce7;
    border-left: 4px solid #16a34a;
    color: #166534;
}

.modal .info-box-yellow {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

/* Autocomplete results szebb stílus */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8fafc;
}

.autocomplete-item strong {
    color: #0f172a;
    font-weight: 600;
}

.autocomplete-item small {
    color: #64748b;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* ==============================================
   PRINT STYLES
   ============================================== */
@media print {
    .calendar-header button,
    .calendar-controls,
    .modal {
        display: none !important;
    }
    
    .calendar-grid-week {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    
    .calendar-time-slot {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

