/* Global Styles */
:root {
    /* Light Mode */
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --danger-color: #E74C3C;
    --warning-color: #F39C12;
    --light-bg: #F8F9FA;
    --dark-text: #2C3E50;
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
    --text-muted: #6C757D;
}

[data-theme="dark"] {
    /* Dark Mode */
    --primary-color: #64B5F6;
    --secondary-color: #66BB6A;
    --danger-color: #EF5350;
    --warning-color: #FFB74D;
    --light-bg: #000000;
    --dark-text: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.15);
    --card-bg: #000000;
    --text-muted: #CCCCCC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Override body background on login page */
body.login-page,
body:has(.login-page-wrapper) {
    background: transparent;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    background-color: var(--light-bg);
    color: #FFFFFF !important;
}

[data-theme="dark"] body *,
[data-theme="dark"] body *::before,
[data-theme="dark"] body *::after {
    color: inherit;
}

/* Force white text for all text elements in frontend */
[data-theme="dark"] body p,
[data-theme="dark"] body span,
[data-theme="dark"] body div,
[data-theme="dark"] body h1,
[data-theme="dark"] body h2,
[data-theme="dark"] body h3,
[data-theme="dark"] body h4,
[data-theme="dark"] body h5,
[data-theme="dark"] body h6,
[data-theme="dark"] body label,
[data-theme="dark"] body li,
[data-theme="dark"] body td,
[data-theme="dark"] body th,
[data-theme="dark"] body a:not(.btn),
[data-theme="dark"] body .text-muted,
[data-theme="dark"] body .form-label,
[data-theme="dark"] body .card-body,
[data-theme="dark"] body .card-title,
[data-theme="dark"] body .card-text,
[data-theme="dark"] body .navbar-nav,
[data-theme="dark"] body .navbar-nav .nav-link {
    color: #FFFFFF !important;
}

/* Buttons should keep their colors */
[data-theme="dark"] body .btn-primary,
[data-theme="dark"] body .btn-success,
[data-theme="dark"] body .btn-danger,
[data-theme="dark"] body .btn-warning,
[data-theme="dark"] body .btn-info {
    color: inherit;
}

/* Navbar Styles */
.navbar {
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

[data-theme="dark"] .navbar-brand {
    color: #FFFFFF !important;
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: #FFFFFF !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
    opacity: 0.8;
}

.navbar-brand i {
    margin-right: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

[data-theme="dark"] .hero-section h1 {
    color: white !important;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

[data-theme="dark"] .hero-section p {
    color: white !important;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    background: var(--card-bg);
}

[data-theme="dark"] .service-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(255, 255, 255, 0.05);
    background: var(--card-bg);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6),
                0 0 25px rgba(255, 255, 255, 0.08);
}

.service-card .card-body {
    padding: 30px;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

[data-theme="dark"] .service-icon {
    color: #FFFFFF !important;
}

.service-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

[data-theme="dark"] .service-price {
    color: #FFFFFF !important;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .form-container {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(255, 255, 255, 0.05);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    padding: 12px;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background: var(--card-bg);
    color: var(--dark-text);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: #FFFFFF !important;
}

[data-theme="dark"] .form-control option,
[data-theme="dark"] .form-select option {
    background: #000000;
    color: #FFFFFF !important;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #357ABD;
}

.btn-success {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

/* Tables */
.table {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .table {
    background: var(--card-bg);
}

[data-theme="dark"] .table,
[data-theme="dark"] .table td,
[data-theme="dark"] .table th,
[data-theme="dark"] .table tbody tr {
    color: #FFFFFF !important;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .table thead {
    background-color: var(--primary-color);
    color: white !important;
}

[data-theme="dark"] .table thead th {
    color: white !important;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

[data-theme="dark"] .table tbody tr:hover {
    background-color: rgba(100, 181, 246, 0.15);
}

/* Status Badges */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending {
    background-color: #FF9800;
    color: #FFFFFF;
}

.badge-confirmed {
    background-color: #2196F3;
    color: #FFFFFF;
}

.badge-in-progress {
    background-color: #9C27B0;
    color: #FFFFFF;
}

.badge-completed {
    background-color: #4CAF50;
    color: #FFFFFF;
}

.badge-cancelled {
    background-color: #F44336;
    color: #FFFFFF;
}

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .footer {
    background-color: #000000;
}

.footer h5 {
    margin-bottom: 20px;
}

.footer a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .form-container {
        margin: 15px;
        padding: 25px 15px;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-card .card-body {
        padding: 20px;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .service-price {
        font-size: 1.5rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .btn-primary,
    .btn-success {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .footer {
        padding: 30px 0;
        margin-top: 50px;
    }
    
    .footer .row > div {
        margin-bottom: 30px;
    }
}

/* Star Rating */
.star-rating {
    font-size: 2rem;
    color: #FFD700;
    cursor: pointer;
}

.star-rating .star {
    margin-right: 5px;
    transition: transform 0.2s ease;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.star-rating .star.active {
    color: #FFD700;
}

.star-rating .star.inactive {
    color: #E0E0E0;
}

/* ============================================
   LOGIN PAGE - ANIMATED GRADIENT & GLASSMORPHISM
   ============================================ */

/* Login Page Wrapper - Full Screen */
.login-page-wrapper {
    position: relative;
    min-height: 100vh; /* Full viewport height */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Animated Gradient Background */
.login-gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe, #667eea);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Dark theme gradient */
[data-theme="dark"] .login-gradient-bg {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533483, #1a1a2e);
    background-size: 400% 400%;
}

/* Glassmorphism Form Container */
.login-form-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Card */
.login-form-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 40px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Dark theme glassmorphism */
[data-theme="dark"] .login-form-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .login-form-card:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.login-title i {
    font-size: 1.8rem;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* Login Alerts */
.login-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-alert-danger {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ffebee;
    backdrop-filter: blur(10px);
}

.login-alert-success {
    background: rgba(80, 200, 120, 0.2);
    border: 1px solid rgba(80, 200, 120, 0.4);
    color: #e8f5e9;
    backdrop-filter: blur(10px);
}

.login-alert i {
    font-size: 1.1rem;
}

/* Login Form */
.login-form {
    width: 100%;
}

.login-form-group {
    margin-bottom: 24px;
}

.login-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.login-label i {
    font-size: 1rem;
    opacity: 0.8;
}

/* Glassmorphism Input Fields */
.login-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.login-input:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dark theme inputs */
[data-theme="dark"] .login-input {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .login-input:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Form Options */
.login-form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.login-forgot-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-forgot-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Submit Button */
.login-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-submit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn i {
    transition: transform 0.3s ease;
}

.login-submit-btn:hover i {
    transform: translateX(4px);
}

/* Login Footer */
.login-footer {
    margin-top: 28px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.login-register-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-register-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-page-wrapper {
        min-height: 100vh;
        padding: 15px;
    }
    
    .login-form-card {
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .login-input {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .login-submit-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-form-card {
        padding: 24px 20px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-header {
        margin-bottom: 24px;
    }
    
    .login-form-group {
        margin-bottom: 20px;
    }
}

/* Hide footer on login page */
body.login-page footer,
body:has(.login-page-wrapper) footer {
    display: none;
}

