/* Custom styles for Literris branding */
:root {
    --brand-teal: #2c7c72;
    --brand-dark: #1e3a47;
    /* Added transition variable for smooth UI interactions */
    --transition-speed: 0.5s; 
}

/* Navbar Styling */
.navbar-nav .nav-link {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--brand-dark) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

/* Hover Effect: Using your brand-teal */
.navbar-nav .nav-link:hover {
    color: var(--brand-teal) !important;
    transform: translateY(-2px);
}

/* Hero Section Animation */
.hero-content {
    animation: fade-in-up 1s ease-out;
}

/* Background */
body {
    /* We set the background size to 200% so we have room to animate the position */
    background: linear-gradient(135deg, rgba(44, 124, 114, 0.15) 0%, #ffffff 50%, rgba(44, 124, 114, 0.05) 100%);
    background-size: 200% 200%;
    animation: gradient-drift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

@keyframes gradient-drift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    /* Added a subtle slide-up effect on load */
    animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card h3 {
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-muted {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Enhanced Inputs */
.form-control {
    border: 2px solid #edf2f7;
    border-radius: 10px;
    padding: 12px 16px;
    transition: all var(--transition-speed) ease;
    background-color: #fcfcfc;
}

.form-control:focus {
    border-color: var(--brand-teal);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(44, 124, 114, 0.1);
}

/* Refined Button */
.btn-primary {
    background-color: var(--brand-teal);
    border: none;
    padding: 12px;
    transition: background-color var(--transition-speed);
}

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

/* Link Styling */
a.text-muted {
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

a.text-muted:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Stats Bar Styling */
.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}
.stat-item h3 { font-weight: 700; color: var(--brand-dark); }
.stat-item p { color: #666; font-size: 0.9rem; margin-bottom: 0; }

/* Feature Icon Boxes */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(44, 124, 114, 0.1);
    color: var(--brand-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.feature-card {
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
}

.feature-card:hover .icon-box {
    background: var(--brand-teal);
    color: #ffffff;
}

/* Gradient CTA Section */
.cta-banner {
    background: linear-gradient(135deg, #1e3a47 0%, #2c7c72 100%);
    padding: 80px 0;
    color: white;
    border-radius: 20px;
}

/* Specific styling for Admin Header to ensure white text */
.admin-nav .nav-link {
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.admin-nav .nav-link:hover {
    color: #d1d1d1 !important; /* A light grey hover effect */
}

/* Ensure any active state is also visible */
.admin-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: bold;
}