/* Orange Theme Color Palette */
:root {
    --primary-orange: #FF8C42;
    --hover-accent-orange: #FFA75C;
    --background-light-orange: #FFEBD6;
    --accent-orange: #D9662C;
    --text-on-dark: #FFFFFF;
    --text-on-light: #333;
    --card-bg: #FFFFFF;
    --border-color: #ddd;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-on-light);
    background-color: var(--background-light-orange);
    overflow-x: hidden;
    font-size: 16px; /* Ensure 16px body text */
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Top Header */
.top-header {
    background-color: var(--primary-orange);
    color: var(--text-on-dark);
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.branding {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.dashboard-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.dashboard-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.notifications-icon {
    position: relative;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff5252;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-greeting {
    color: white;
    font-weight: 500;
}

.btn-logout {
    background-color: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 4px;
    padding: 6px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: white;
    color: var(--primary-orange);
}

/* Breadcrumb */
.breadcrumb-container {
    background-color: white;
    padding: 8px 0;
    margin-top: 60px;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: var(--primary-orange);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Minimal Sidebar */
.minimal-sidebar {
    position: relative;
    left: 0;
    top: 0;
    height: 100vh;
    width: 220px;
    background-color: var(--accent-orange);
    box-shadow: 1px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: all 0.3s ease;
}

.sidebar-branding {
    padding: 20px;
    color: #ffffff;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
    margin-top: 30px;
}

.small-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: normal;
}

.minimal-sidebar .nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.minimal-sidebar .nav-item {
    width: 100%;
}

.minimal-sidebar .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.minimal-sidebar .nav-link span {
    margin-left: 15px;
    font-weight: 500;
    color: #ffffff;
}

.minimal-sidebar .nav-link:hover {
    background-color: var(--hover-accent-orange);
    color: var(--text-on-dark);
}

.minimal-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.minimal-sidebar .nav-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.minimal-sidebar .nav-icon.active-icon {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.minimal-sidebar .nav-link:hover .nav-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Adjust main content for sidebar and header */
.content-wrapper {
    margin-left: 220px;
    margin-top: 98px; /* 60px header + 38px breadcrumb */
    padding: 20px;
    min-height: calc(100vh - 98px);
    transition: all 0.3s ease;
}

.content-container {
    background-color: transparent;
    padding: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .minimal-sidebar {
        width: 60px;
    }
    
    .minimal-sidebar .nav-link span {
        display: none;
    }
    
    .content-wrapper {
        margin-left: 60px;
    }
    
    .sidebar-branding {
        display: none;
    }
    
    .minimal-sidebar .nav-link {
        justify-content: center;
        padding: 15px 0;
    }
    
    .user-greeting {
        display: none;
    }
}

@media (max-width: 576px) {
    .dashboard-link span {
        display: none;
    }
}

/* Enhanced Navbar Styles */
.navbar {
    height: 60px; /* Updated to exactly 60px per requirements */
    padding: 0;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--hover-accent-orange) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-brand, .nav-link {
    color: white !important;
    font-weight: 500;
    opacity: 1;
    transition: all 0.3s ease;
}

.navbar-brand:hover, .nav-link:hover {
    opacity: 0.9;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    padding-left: 15px;
    display: flex;
    align-items: center;
    height: 60px;
}

.navbar-brand span {
    margin-left: 10px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--hover-accent-orange) 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder .text-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    height: 60px;
}

.nav-item {
    margin: 0 8px;
    position: relative;
}

.nav-link {
    padding: 8px 12px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link.active {
    color: white !important;
    font-weight: 600;
}

.nav-link i {
    margin-right: 4px;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler:focus {
    outline: 2px solid white;
    outline-offset: 2px;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Updated Navigation for Home Page */
body:not(.logged-in) .navbar .nav-link {
    padding: 8px 16px;
    font-weight: 500;
}

body:not(.logged-in) .navbar .btn-outline-light {
    border: 2px solid white;
    padding: 6px 16px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

body:not(.logged-in) .navbar .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-orange) !important;
}

/* Mobile Navigation Animation */
.navbar-collapse {
    transition: max-height 0.3s ease;
    overflow: hidden;
}

@media (max-width: 768px) {
    .navbar-collapse {
        background-color: var(--primary-orange);
        border-radius: 0 0 10px 10px;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        max-height: 0;
    }
    
    .navbar-collapse.show {
        max-height: 300px; /* Will be set dynamically with JS */
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0;
        animation: slideIn 0.3s forwards;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Hero Section Styles */
.hero-section {
    background-color: var(--primary-orange);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.9) 0%, rgba(255, 105, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--hover-accent-orange) 100%);
    border: none;
    color: white;
    min-height: 48px; /* Minimum height for all buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 140, 66, 0.2);
}

.btn-outline-light:hover {
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 66, 0.2);
}

/* Enhanced Login Page Styles */
.login-form-container {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 auto;
    max-width: 500px;
    animation: fadeIn 0.5s ease-in;
}

/* Login Form Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Header with Right Arrow */
.welcome-header {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-icon {
    margin-left: 10px;
    font-size: 0.8em;
    color: var(--primary-orange);
    animation: fadeInRight 0.5s ease-in forwards 0.3s;
    opacity: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Login Form Styling */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-control {
    height: 48px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-form .form-control:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.25);
}

.login-form .form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.login-form .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    padding: 0 8px;
}

.login-form .input-group-text i {
    font-size: 16px;
    color: var(--primary-orange);
}

.login-form .form-label {
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Login Button Styling */
.login-button {
    background: linear-gradient(45deg, var(--hover-accent-orange), var(--primary-orange));
    border: none;
    color: white;
    font-weight: 600;
    height: 48px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-button:active {
    transform: scale(0.98);
}

/* Toggle Password Button */
.toggle-password {
    border: 1px solid #ced4da;
    border-left: none;
    background-color: #f8f9fa;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0 4px 4px 0;
    transition: all 0.2s ease;
}

.toggle-password:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

.toggle-password:hover {
    background-color: #e9ecef;
}

.toggle-password.active {
    background-color: #e9ecef;
}

/* Error Messages */
.error-message {
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px;
    display: block;
    transition: all 0.3s ease;
}

/* Form Validation Styles */
.validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Form Divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
    z-index: 1;
}

.divider span {
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Links Styling */
.forgot-password, .register-link, .learn-more-link {
    color: #1E88E5;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.forgot-password:hover, .register-link:hover, .learn-more-link:hover {
    color: #1565C0;
    text-decoration: none;
}

.register-link strong {
    position: relative;
    color: #1E88E5;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link strong::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #1E88E5;
    bottom: -2px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.register-link:hover strong::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Spinner and Animation Styles */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    opacity: 0.8;
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}

.pulse-animation {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced Footer Styles */
.footer {
    background-color: #212121;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer a {
    color: #90CAF9;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #42A5F5;
    text-decoration: underline;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #1E88E5, #42A5F5);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #1E88E5;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}

.container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Password strength meter for signup page */
.password-strength-meter {
    margin-top: 0.5rem;
}

.password-strength-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.password-feedback {
    font-size: 0.85rem;
    color: #555;
}

.password-requirements {
    font-size: 0.85rem;
}

.password-requirements ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.password-requirements li {
    margin-bottom: 0.25rem;
}

.password-requirements li i {
    width: 14px;
}

/* Signup page styles */
.signup-container {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
    animation: fadeInUp 0.8s ease;
}

.signup-container h2 {
    color: #1E88E5;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.section {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #efefef;
    transition: all 0.3s ease;
}

.section h4 {
    color: #1E88E5;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.section h4 i {
    margin-right: 0.5rem;
}

.required {
    color: #dc3545;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .login-form-container {
        padding: 20px;
        width: 100%;
    }
    
    .login-form .form-control,
    .login-button {
        height: 48px; /* Ensure buttons are 48px high on mobile */
    }
    
    .welcome-header {
        font-size: 1.5rem;
    }
    
    /* Stack elements vertically */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .signup-container {
        padding: 1.5rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col-md-6, .col-md-4 {
        width: 100%;
        padding: 0;
    }
    
    .btn {
        min-height: 48px;
    }
}

/* Animated Elements */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    opacity: 0.8;
}

/* Focus Styles for Accessibility */
input:focus, select:focus, textarea:focus, button:focus, a:focus {
    outline: 2px solid #1E88E5 !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

/* Form Control States */
.form-control.is-valid, .was-validated .form-control:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid, .was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Checkbox styling */
.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: #1E88E5;
    border-color: #1E88E5;
}

.form-check-input:focus {
    border-color: #1E88E5;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(30, 136, 229, 0.25);
}

.form-check-input.is-valid {
    border-color: #28a745;
    background-color: #28a745;
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-label {
    cursor: pointer;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.form-check-input:checked + .form-check-label {
    color: #1E88E5;
    font-weight: 500;
}

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

.btn.loading .spinner {
    margin-right: 0.5rem;
}

/* File upload display */
.file-info {
    animation: fadeInUp 0.3s ease;
    margin-top: 8px;
    overflow: hidden;
}

/* Animations for validation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Button Hover Effects */
.btn-primary:hover, .btn-success:hover, .btn-info:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Registration Success Modal */
.registration-success-modal {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

.success-icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    animation: scaleIn 0.5s ease-in-out;
}

#successCloseBtn {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    border: none;
    min-width: 120px;
}

#successCloseBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* User Management Styles */
.user-management-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.user-table th, 
.user-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.user-table th {
    background-color: #f5f7fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.user-table tr:nth-child(odd) {
    background-color: #f5f7fa;
}

.user-table tr:hover {
    background-color: #f0f4f8;
}

.user-table .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    min-height: auto;
    transition: all 0.3s ease;
}

.user-table .btn:hover {
    transform: scale(1.05);
}

.user-table .btn-approve {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.user-table .btn-reject {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.user-table .file-link {
    color: #1E88E5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.user-table .file-link:hover {
    color: #1565C0;
    text-decoration: underline;
}

.user-table .file-link i {
    margin-right: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: #FEF5E7;
    color: #E67E22;
}

.status-badge.verified {
    background-color: #E8F5E9;
    color: #27AE60;
}

.status-badge.rejected {
    background-color: #FDEDEB;
    color: #C0392B;
}

.pagination-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #777;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* Login page specific animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-animation {
    animation: fadeIn 0.5s ease-in;
}

/* Login button spinner */
#loginSpinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    background: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
    color: white;
    border-radius: 4px;
    font-weight: 500;
}

/* Login button and spinner */
.login-button-content,
.login-button-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Form focus styles for accessibility */
.form-control:focus {
    border-color: #1E88E5;
    box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #F5F7FA 0%, #FFFFFF 100%);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    background-color: #1E88E5;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step h3 {
    color: #1E88E5;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Service Cards */
.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: #1E88E5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background-color: #1976D2;
}

.service-card h3 {
    margin-bottom: 12px;
    color: #1E88E5;
    font-weight: 600;
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Learn More Button */
.learn-more-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    color: white;
    border-color: white;
}

.learn-more-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.learn-more-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Additional Responsive Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Smaller font for mobile */
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .login-form-container {
        padding: 20px;
        width: 100%;
    }
    
    .login-form .form-control,
    .login-button {
        height: 48px; /* Ensure buttons are 48px high on mobile */
    }
    
    .welcome-header {
        font-size: 1.5rem;
    }
    
    /* Stack elements vertically */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step {
        padding: 16px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .service-card {
        padding: 16px;
    }
    
    h1, h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Hide checkbox error messages in validation summary */
.validation-summary ul li[data-valmsg-for="Input.AgreeToTerms"],
.validation-summary ul li[data-valmsg-for="Input.ConfirmResidency"],
.field-validation-error[data-valmsg-for="Input.AgreeToTerms"],
.field-validation-error[data-valmsg-for="Input.ConfirmResidency"] {
    display: none !important;
}

/* Custom styles for the Admin Dashboard */
.admin-dashboard {
    margin-bottom: 2rem;
}

/* Table styling */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.03);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.08);
}

.table th {
    font-weight: 600;
    font-size: 0.9rem;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Avatar circle for staff initials */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Status indicator dot */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Search styling */
.search-container {
    position: relative;
    max-width: 300px;
}

.search-container .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    padding-right: 35px;
    border-radius: 20px;
}

/* Action buttons */
.action-btn {
    margin-right: 4px;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-permissions {
    background-color: #6f42c1;
    color: white;
}

.btn-permissions:hover {
    background-color: #5a36a0;
    color: white;
}

/* Footer styling */
.dashboard-footer {
    padding: 0.75rem 1.25rem;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    color: #6c757d;
    font-size: 0.85rem;
}

/* Pagination styling */
.pagination-sm .page-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.765625rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-btn {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Assessment Form Styles */
.assessment-container {
    max-width: 1200px;
    margin: 0 auto;
}

.assessment-title {
    color: #1976D2;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.assessment-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1976D2, #42A5F5);
    border-radius: 2px;
}

.assessment-card {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.assessment-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #edf2f7;
    padding: 15px 20px;
}

.assessment-card .card-body {
    padding: 24px;
}

.assessment-section-title {
    color: #1976D2;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0;
}

.assessment-form .form-label {
    font-weight: 500;
    color: #505050;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.assessment-form .form-control, 
.assessment-form .form-select {
    border-radius: 6px;
    padding: 10px 14px;
    border-color: #dce1e9;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.assessment-form .form-control:focus,
.assessment-form .form-select:focus {
    border-color: #90CAF9;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.15);
}

.assessment-form textarea.form-control {
    min-height: 80px;
}

.assessment-info-box {
    background-color: #e3f2fd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border-left: 4px solid #1976D2;
    font-size: 0.95rem;
}

.assessment-warning-box {
    background-color: #fff8e1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    border-left: 4px solid #FFC107;
    font-size: 0.95rem;
}

.assessment-form .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.25rem;
    cursor: pointer;
}

.assessment-form .form-check-input:checked {
    background-color: #1976D2;
    border-color: #1976D2;
}

.assessment-form .form-check-label {
    padding-left: 8px;
    font-size: 0.95rem;
}

.assessment-form .btn-primary {
    background: linear-gradient(135deg, #1976D2 0%, #42A5F5 100%);
    border: none;
    padding: 10px 24px;
    font-weight: 500;
    min-width: 120px;
}

.assessment-form .btn-primary:hover {
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.assessment-form .btn-secondary {
    background-color: #78909C;
    border: none;
    padding: 10px 24px;
    font-weight: 500;
    min-width: 120px;
}

.assessment-form .btn-secondary:hover {
    background-color: #607D8B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.assessment-header button#backButton {
    border-color: #1976D2;
    color: #1976D2;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.assessment-header button#backButton:hover {
    background-color: #f0f7ff;
    border-color: #1976D2;
    transform: translateX(-3px);
}

/* Responsive adjustments for assessment forms */
@media (max-width: 768px) {
    .assessment-container {
        padding: 1rem;
    }
    
    .assessment-title {
        font-size: 1.5rem;
    }
    
    .assessment-card .card-body {
        padding: 16px;
    }
    
    .assessment-form .form-control, 
    .assessment-form .form-select {
        font-size: 16px; /* Prevent zoom on mobile */
        padding: 8px 12px;
    }
    
    .assessment-form .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .assessment-form .d-flex {
        flex-direction: column;
    }
    
    .assessment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .assessment-header button#backButton {
        align-self: flex-start;
    }
    
    .assessment-header .assessment-title {
        align-self: center;
    }
}

/* User Dashboard Styles - Modern Design */
.health-metric {
    transition: all 0.3s ease;
}

.health-metric:hover {
    transform: translateY(-5px);
}

.metric-icon {
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.health-metric:hover .metric-icon {
    background-color: #e8f1ff !important;
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.15);
}

.appointment-card {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.appointment-card:hover {
    background-color: #f8fbff;
}

.appointment-time {
    font-size: 0.9rem;
}

.appointment-details h6 {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h5 {
    font-weight: 600;
    color: #333;
}

.bg-info.bg-opacity-25 {
    background-color: rgba(13, 202, 240, 0.15) !important;
}

/* Media Queries for Responsive Dashboard */
@media (max-width: 992px) {
    .health-metric {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .row .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Layout without sidebar */
.wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    width: 100%;
}

.top-navbar {
    height: 60px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 998;
}

.content-container {
    padding: 1.5rem;
    background-color: #f5f7fa;
    min-height: calc(100vh - 60px);
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: #1976D2;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    animation: fadeInDown 0.3s ease;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    .content-container {
        padding: 1rem;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
}

/* Global Dark Mode Toggle Button - disabled */
.global-theme-toggle { display: none !important; }
.global-theme-toggle:hover { box-shadow: none; transform: none; }
.global-theme-toggle i { display: none; }
/* Dark mode styles removed */

/* Status Bar for Assessment Pages */
.status-bar {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-orange);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.status-bar strong {
    color: var(--accent-orange);
    font-weight: 600;
}

.status-bar .row {
    align-items: center;
}

/* OTP Input styling */
.otp-input {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    padding: 2px 0;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #fff;
    margin: 0 3px;
}

.otp-input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.otp-input.is-valid {
    border-color: #28a745;
    background-color: #f8fff9;
}