/* LUX Travel Adventures - Main Stylesheet */

:root {
    --lux-primary: #365B6D;
    --lux-secondary: #c4a052;
    --lux-accent: #4a7a8c;
    --lux-dark: #2a454f;
    --lux-light: #F2F1EC;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #F2F1EC;
}

main {
    flex: 1;
}

/* Navbar customization */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-dark {
    background: linear-gradient(135deg, var(--lux-dark) 0%, var(--lux-primary) 100%) !important;
}

/* Auth pages */
.auth-container {
    max-width: 450px;
    margin: 2rem auto;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card .logo i {
    font-size: 3rem;
    color: var(--lux-primary);
}

.auth-card h2 {
    text-align: center;
    color: var(--lux-primary);
    margin-bottom: 1.5rem;
}

/* Form styling */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--lux-primary);
}

.form-control:focus {
    border-color: var(--lux-secondary);
    box-shadow: 0 0 0 0.2rem rgba(196, 160, 82, 0.25);
}

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

.btn-primary:hover {
    background: var(--lux-dark);
    border-color: var(--lux-dark);
}

.btn-outline-primary {
    color: var(--lux-primary);
    border-color: var(--lux-primary);
}

.btn-outline-primary:hover {
    background: var(--lux-primary);
    border-color: var(--lux-primary);
}

/* Admin panel */
.admin-sidebar {
    background: var(--lux-dark);
    min-height: calc(100vh - 56px);
    padding-top: 1rem;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin: 0.25rem 0.5rem;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar .nav-link.active {
    background: var(--lux-secondary);
    color: var(--lux-dark);
}

.admin-sidebar .nav-link i {
    width: 24px;
}

/* Stats cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lux-dark);
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Tables */
.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.table-card .table {
    margin-bottom: 0;
}

.table-card .table th {
    border-top: none;
    background: #F2F1EC;
    font-weight: 600;
    color: var(--lux-dark);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Modals */
.modal-header {
    background: var(--lux-primary);
    color: white;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--lux-dark) 0%, var(--lux-primary) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container {
        margin: 1rem;
        max-width: none;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.password-strength.weak { background: #dc3545; width: 25%; }
.password-strength.fair { background: #ffc107; width: 50%; }
.password-strength.good { background: #17a2b8; width: 75%; }
.password-strength.strong { background: #28a745; width: 100%; }

/* Loading spinner */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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