/* Custom ADHD-friendly styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* For sticky footer */
    margin: 0;
    padding: 0;
}

/* Background system - colorful homepage, subtle app pages */
body.homepage {
    background: linear-gradient(315deg, #e3f2fd 0%, #bbdefb 25%, #fef9d7 50%, #fed6e3 75%, #e3f2fd 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Dashboard/App pages - Subtle, focus-friendly background */
body.app-page {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 25%, #e8f5e8 50%, #fff3e0 75%, #e3f2fd 100%);
    background-size: 400% 400%;
    animation: gradientShift 25s ease infinite;
}

/* Animated gradient background */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Utility classes for common inline styles */
.fw-600 { font-weight: 600; }
.opacity-90 { opacity: 0.9; }
.text-color-333 { color: #333; }

/* Enhanced card styling to pop against the background */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Apply Comfortaa font to all headings */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Comfortaa', cursive;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}
.btn {
    border-radius: 25px;
    font-weight: 500;
}
.alert {
    border-radius: 15px;
}

/* Lighter placeholder text for better readability */
::placeholder {
    color: #adb5bd !important;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #adb5bd !important;
}

::-ms-input-placeholder {
    color: #adb5bd !important;
}

/* Beautiful navbar styling to match the cards */
.custom-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-bottom: 0;
    padding: 15px 0;
    position: relative;
}

/* Static rainbow border at bottom of navbar */
.custom-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #ffa726, #66bb6a, #42a5f5, #ab47bc);
}

.navbar-brand {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    color: #f8f9fa !important;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 8px;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dropdown-menu {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 10px;
}

.dropdown-item {
    border-radius: 10px;
    margin: 5px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 8px 12px;
    flex-shrink: 0; /* Prevent the toggler from shrinking */
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

/* Ensure navbar brand doesn't take up too much space on mobile */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.4rem; /* Smaller font on mobile */
        margin-right: 1rem; /* Add some spacing from toggler */
    }
    
    /* Fix navbar collapse behavior - prevent layout shift */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 0 0 15px 15px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        margin-top: 0;
        z-index: 1000;
    }
    
    /* Style the mobile menu items */
    .navbar-nav {
        padding: 1rem;
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem auto;
        display: block;
        border-radius: 10px;
        max-width: 200px;
        background: rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.2);
    }
}

/* Main container spacing */
.main-container {
    margin-top: 30px;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .rainbow-border {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ff6b6b, #ffa726, #66bb6a, #42a5f5, #ab47bc);
}

footer p {
    font-family: 'Comfortaa', cursive;
}

footer p.main {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

footer p.sub {
    margin: 10px 0 0 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Custom Button Styling - Purple gradient theme throughout the app */
.btn-cute {
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 12px 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

/* Primary button (Success/Green classes) - Purple gradient */
.btn-cute.btn-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-cute.btn-success:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

/* Primary button (Bootstrap primary) - Purple gradient for login pages */
.btn-cute.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.btn-cute.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

/* Secondary button (Outline styles) - Subtle outline with gradient hover */
.btn-cute.btn-outline-primary {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-cute.btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #764ba2;
    color: #764ba2;
}

.btn-cute.btn-outline-secondary {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-cute.btn-outline-secondary:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #764ba2;
    color: #764ba2;
}

/* Ripple effect on click */
.btn-cute::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.btn-cute:hover::before {
    width: 300px;
    height: 300px;
}

/* Lift effect on hover */
.btn-cute:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}