* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --evernote-green: #00a82d;
    /* Reserved for accents */
    --nu-green: #008f4c;
    /* NU Green approx */
    --leaf-green: #a4c639;
    /* Light Leaf Green */
    --sidebar-width: 260px;
    --text-color: #333;
    --bg-color: #f7f7f7;
    --border-color: #e1e1e1;
}

/* App Footer */
.app-footer {
    margin-top: auto !important;
    padding: 0.75rem 1.5rem;
    /* Reduced vertical padding */
    background: linear-gradient(135deg, var(--nu-green) 0%, var(--leaf-green) 100%);
    border-radius: 12px;
    text-align: center;
    color: #fff;
    margin-bottom: 0 !important;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.footer-tagline {
    font-size: 1.1rem;
    /* Slightly smaller tagline */
    font-weight: 600;
    margin-bottom: 0.25rem;
    /* Reduced margin */
}

.footer-quote {
    font-size: 0.9rem;
    /* Slightly smaller quote */
    font-style: italic;
    margin-bottom: 0.5rem;
    /* Reduced margin */
    opacity: 0.9;
    line-height: 1.4;
}

.footer-copyright {
    font-size: 0.8rem;
    /* Slightly smaller copyright */
    opacity: 0.8;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.5rem;
    /* Reduced padding */
}

/* Content Header Bar */
.content-header {
    background: linear-gradient(135deg, var(--nu-green) 0%, var(--leaf-green) 100%);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 0;
}

.datetime-display {
    display: flex;
    gap: 1rem;
}

.datetime-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.datetime-card .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.datetime-card .info {
    display: flex;
    flex-direction: column;
}

.datetime-card .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.datetime-card .value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--nu-green) 0%, var(--leaf-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

#userDropdown {
    border: 1px solid var(--border-color);
    background: #fff;
    font-weight: 500;
}

#userDropdown:hover {
    border-color: var(--nu-green);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Layout Wrapper */
.main-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--nu-green) 0%, var(--leaf-green) 100%);
    color: #fff;
    flex-shrink: 0;
    position: fixed;
    top: 10px;
    left: 10px;
    height: calc(100vh - 10px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
    border-radius: 16px 16px 0 0;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    gap: 1rem;
}

/* Logo with floating animation */
.sidebar-logo {
    width: 65px;
    height: 65px;
    border-radius: 0;
    background: transparent;
    padding: 0;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.sidebar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    padding: 0 1rem;
    /* Added horizontal padding for floating effect */
    margin: 0;
    flex: 1;
}

.nav-item {
    margin-bottom: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-radius: 8px;
    /* Rounded items */
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.nav-link.active {
    color: var(--nu-green);
    background-color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-link i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.user-profile {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
    background: rgba(0, 0, 0, 0.05);
}

.user-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.logout-btn {
    display: block;
    margin-top: 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.logout-btn:hover {
    color: #fff;
    opacity: 1;
    text-decoration: underline;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + 30px);
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 0 !important;
    padding: 1rem 2.5rem 0 2.5rem !important;
    background-color: #fff;
    min-height: calc(100vh - 10px) !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--leaf-green);
    border-bottom: none !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Modern Dashboard Cards - Bright Theme with Green Gradient Border */
.stats-card {
    background: #fff;
    /* White/Bright inside */
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: visible;
    /* Allow glow to show */
    height: 100%;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Gradient border effect matching sidebar colors */
    border: 3px solid transparent;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(135deg, var(--nu-green) 0%, var(--leaf-green) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;

    /* Green glow effect around the card */
    box-shadow: 0 0 15px rgba(0, 143, 76, 0.25),
        0 0 30px rgba(164, 198, 57, 0.15),
        0 4px 6px -1px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(0, 143, 76, 0.4),
        0 0 50px rgba(164, 198, 57, 0.25),
        0 10px 20px -5px rgba(0, 0, 0, 0.12);
}

.stats-card .icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.6rem;
    color: #fff;
}

/* Gradient icon backgrounds */
.stats-card.primary .icon-wrapper {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stats-card.success .icon-wrapper {
    background: linear-gradient(135deg, var(--nu-green) 0%, var(--leaf-green) 100%);
}

.stats-card.warning .icon-wrapper {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.stats-card .card-title {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stats-card .card-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    background: linear-gradient(135deg, var(--nu-green) 0%, var(--leaf-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--nu-green);
    border-color: var(--nu-green);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #00703c;
    border-color: #00703c;
}

.btn-outline-primary {
    color: var(--nu-green);
    border-color: var(--nu-green);
}

.btn-outline-primary:hover {
    background-color: var(--nu-green);
    border-color: var(--nu-green);
}

/* Card Styling */
.card {
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background-color: #fff;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Table Styling */
.table th {
    font-weight: 600;
    color: #555;
    background-color: #f9f9f9;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 250px;
    }

    .sidebar {
        left: calc(-1 * var(--sidebar-width) - 20px);
        transition: left 0.3s ease;
        top: 0;
        height: 100vh;
        border-radius: 0;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 10px !important;
        padding: 1rem 1rem 0 1rem !important;
    }

    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }

    .datetime-display {
        width: 100%;
        flex-wrap: wrap;
    }

    .datetime-card {
        flex: 1;
        min-width: 140px;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--nu-green);
        font-size: 1.1rem;
    }
}

.mobile-toggle {
    display: none;
}