/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}


.copy-link-input:hover {
    background-color: #f8f9fa !important;
    border-color: #28a745 !important;
}

.copy-link-input:focus {
    background-color: #e7f3ff !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.copy-status {
    font-weight: 600;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-50%) scale(0.8); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}


/* ===== CONTAINER & LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Dynamic service fields */
.form-grid .form-group label {
    font-size: 0.95em;
}

.form-grid .form-group input[type="number"] {
    text-align: center;
}

/* Service icons */
.service-icon {
    font-size: 1.2em;
    margin-right: 5px;
}

/* New service highlight */
.new-service {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #e8f5e8, #ffffff);
}


h1{
    padding-top: 45px;
}

.main-content {
    padding: 40px;
}

/* ===== HEADER STYLES ===== */
.header {
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header.primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.header.history {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.header.session-detail {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.header.summary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.session-info {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

/* ===== NAVIGATION STYLES ===== */
.nav-container {
    position: absolute;
    top: 15px;
    left: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.nav-btn.current-page {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.8), 
        rgba(41, 128, 185, 0.8));
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    cursor: default;
    box-shadow: 
        0 8px 32px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-btn.current-page:hover {
    transform: none;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.85), 
        rgba(41, 128, 185, 0.85));
}

.logout-container {
    position: absolute;
    top: 15px;
    right: 20px;
}

.logout-btn {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.85), 
        rgba(192, 57, 43, 0.85));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 8px 32px rgba(231, 76, 60, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    background: linear-gradient(135deg, 
        rgba(231, 76, 60, 0.95), 
        rgba(192, 57, 43, 0.95));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(231, 76, 60, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===== FORM STYLES ===== */
.form-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    font-family: 'Courier New', monospace;
}

/* ===== BUTTON STYLES ===== */
.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-summary {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    margin: 2px;
}

.btn-edit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-cancel {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.btn-reorder {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.btn-view {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    padding: 8px 15px;
    font-size: 0.9em;
}

/* ===== TABLE STYLES ===== */
.orders-table, .sessions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.orders-table th, .sessions-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.sessions-table th {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.orders-table td, .sessions-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.orders-table tr:hover, .sessions-table tr:hover {
    background: #f8f9fa;
}

.order-name {
    font-weight: 600;
    color: #667eea;
}

.total-row {
    background: #e8f5e8 !important;
    font-weight: bold;
    font-size: 1.1em;
}

.total-row td {
    border-top: 2px solid #27ae60;
    color: #27ae60;
}

.edit-mode {
    background: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

/* ===== ALERT STYLES ===== */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ===== SPECIAL SECTIONS ===== */
.order-tools {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
}

.issue-warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 20px;
}

.search-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-table {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.price-table h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.price-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.price-item.premium {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fff9e6, #ffffff);
}

.price-item .service {
    font-weight: 600;
    color: #2c3e50;
}

.price-item .price {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 5px;
}

.price-item.premium .price {
    color: #f39c12;
}

/* ===== STATISTICS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card, .stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #cce7ff;
    color: #004085;
}

/* ===== QUICK FORMS ===== */
.order-number-input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.order-actions {
    white-space: nowrap;
}

.quick-order-form {
    display: inline-block;
    margin: 0 5px;
}

.quick-order-form input[type="submit"] {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
}

/* ===== LOGIN PAGE ===== */
.login-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 10vh;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
}

/* ===== EXAMPLE SECTIONS ===== */
.example-section {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.example-section h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.example-section code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    color: #e74c3c;
}

/* ===== MISCELLANEOUS ===== */
.no-results {
    text-align: center;
    padding: 50px;
    color: #666;
}

.export-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.session-info {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.services-summary {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.service-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
        justify-content: center;
        margin-bottom: 20px;
        left: 0;
        top: 0;
    }
    
    .logout-container {
        position: relative;
        text-align: center;
        margin-top: 15px;
        right: 0;
        top: 0;
    }
    
    .nav-btn, .logout-btn {
        font-size: 0.8em;
        padding: 8px 14px;
    }

    .header h1 {
        font-size: 2em;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-table, .sessions-table {
        font-size: 0.9em;
    }
    
    .orders-table th, .orders-table td,
    .sessions-table th, .sessions-table td {
        padding: 8px;
    }

    .search-form {
        flex-direction: column;
    }
    
    .search-form .form-control {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .nav-btn, .logout-btn {
        font-size: 0.75em;
        padding: 6px 12px;
        gap: 4px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}
