
html, body {
    height: 100%;
    margin: 0;
}
html {
    font-size: 14px;
    height:fit-content;
    
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient( 90deg, #022c22 0%, /* deep green at the far left */
    #065f46 40%, /* your var(--tt-green-main)-style mid green */
    #0f766e 70%, /* teal that matches the header tones */
    #14b8a6 100% /* light teal to blend into the header bg */
    );
    overflow-y: auto;
    /*background: radial-gradient(circle at top left, #020617 0, #020617 40%, #022c22 100%);*/
}


header {
    height: max-content;
    width:100%;
}

.rendered-content {
    width: 100%;
    height:fit-content;
    overflow-x: hidden;
    flex: 1 0 auto;
}

main{
    height:fit-content;
}

#dashboardTopRow {
    height: fit-content;
}

.content-card {
    height: fit-content !important;
    max-height: none !important;
    background: radial-gradient( circle at top left, #ecfdf5 0%, /* very light mint */
    #d1fae5 35%, /* soft pastel green */
    #f9fafb 100% /* almost white for readability */
    );
    border-radius: 1.2rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9);
    margin-top: 1.5rem;
}

.table-card{
    max-height:none!important;
}

.main-navbar {
    background: linear-gradient(90deg, var(--tt-green-deep), var(--tt-green-main));
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

    /* Brand */
    .main-navbar .navbar-brand {
        color: #f9fafb !important;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        font-size: 0.95rem;
    }

        .main-navbar .navbar-brand i {
            font-size: 1.1rem;
            color: #a7f3d0;
        }

        .main-navbar .navbar-brand:hover {
            color: #e5e7eb !important;
        }

    /* Top nav links (if you add some) */
    .main-navbar .navbar-nav .nav-link {
        color: #e5e7eb;
        font-weight: 500;
        font-size: 0.9rem;
        padding: 0.35rem 0.9rem;
        border-radius: 999px;
        transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    }

        .main-navbar .navbar-nav .nav-link:hover {
            background-color: rgba(15, 23, 42, 0.35);
            color: #fefce8;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.5);
            transform: translateY(-1px);
        }

        .main-navbar .navbar-nav .nav-link.active {
            background: radial-gradient(circle at top left, var(--tt-green-soft), var(--tt-green-main));
            color: #ecfdf5;
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.7);
        }

    /* Toggler */
    .main-navbar .navbar-toggler {
        border-color: rgba(248, 250, 252, 0.6);
        border-radius: 0.75rem;
        padding: 0.2rem 0.45rem;
    }

    .main-navbar.navbar-dark .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(249,250,251,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }


.main-footer {
    /*margin-top: 2rem;*/
    margin-top: auto;
    padding: 0.75rem 0;
    background: linear-gradient(90deg, var(--tt-green-deep), var(--tt-green-main));
    color: #e5e7eb;
    font-size: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
    position: relative!important; /* just in case */
}

    .main-footer .container {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        flex-wrap: wrap;
    }

    /* Footer link */
    .main-footer a {
        color: var(--tt-accent-blue);
        text-decoration: none;
        font-weight: 500;
        position: relative;
    }

        .main-footer a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -2px;
            height: 1px;
            background: linear-gradient(90deg, var(--tt-accent-blue), #fef9c3);
            opacity: 0;
            transform: scaleX(0.9);
            transition: opacity 0.15s ease, transform 0.15s ease;
        }

        .main-footer a:hover {
            color: #e0f2fe;
        }

            .main-footer a:hover::after {
                opacity: 1;
                transform: scaleX(1);
            }



.add-entry-btn {
    /* override Bootstrap secondary */
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #059669, /* green */
    #0f766e, /* teal */
    #0ea5e9 /* blue accent */
    );
    color: #f9fafb;
    font-size: 0.9rem;
    padding: 0.45rem 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.45);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

    /* Icon a tiny bit larger & bright */
    .add-entry-btn i {
        font-size: 1rem;
        color: #bbf7d0;
    }

    /* Hover / active */
    .add-entry-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e, #0284c7 );
        box-shadow: 0 10px 24px rgba(15, 118, 110, 0.6);
        color: #f9fafb;
    }

    /* Focus ring */
    .add-entry-btn:focus,
    .add-entry-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }



.edit-btn {
    border-radius: 0.4rem;
    border: 1px solid #a7f3d0; /* mint border */
    background: #f9fafb;
    color: #047857; /* green */
    padding: 0.25rem 1.2rem;
    font-size: 0.9rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    /* Pencil icon */
    .edit-btn i {
        font-size: 0.9rem;
    }

    /* Hover – fill with green/teal gradient */
    .edit-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e);
        border-color: #0f766e;
        color: #ecfdf5;
        box-shadow: 0 3px 10px rgba(5, 150, 105, 0.55);
        transform: translateY(-1px);
    }

    /* Focus ring */
    .edit-btn:focus,
    .edit-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }



.download-btn {
    /* override Bootstrap secondary */
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #059669, /* green */
    #0f766e, /* teal */
    #0ea5e9 /* blue accent */
    );
    color: #f9fafb;
    font-size: 0.9rem;
    padding: 0.25rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.45);
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.4);
}

    /* Icon a tiny bit larger & bright */
    .download-btn i {
        font-size: 1rem;
        color: #bbf7d0;
    }

    /* Hover / active */
    .download-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e, #0284c7 );
        box-shadow: 0 10px 24px rgba(15, 118, 110, 0.6);
        color: #f9fafb;
    }

    /* Focus ring */
    .download-btn:focus,
    .download-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px #ecfdf5, 0 0 0 4px rgba(45, 212, 191, 0.7);
    }

    .save-changes-div{
        display:none;
    }