/* Global reset to remove white space */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
}

#app {
    height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

/************************************   Overview styles   ********************************************/
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.overview-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
}

    .overview-section h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .overview-section ul {
        list-style-type: none;
        padding: 0;
    }

        .overview-section ul li {
            margin-bottom: 10px;
        }

.overall-level {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    color: var(--color-primary-500); /* IDR Teal */
}


.overview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stick-figure-container {
    position: relative;
    height: 200px; /* Adjust based on your actual size requirements */
    display: flex;
    justify-content: center;
    align-items: center;
}

.stick-figure {
    width: 10px;
    height: 150px;
    background-color: black;
    position: relative;
}

    .stick-figure::before {
        content: '';
        position: absolute;
        top: -20px; /* Adjust to make the head align with the body */
        left: -15px;
        width: 40px;
        height: 40px;
        background-color: black;
        border-radius: 50%;
    }

    .stick-figure::after {
        content: '';
        position: absolute;
        top: 50px; /* Adjust for arms */
        width: 80px;
        height: 10px;
        background-color: black;
        left: -35px; /* Center the arms on the body */
    }

.attributes {
    position: absolute;
    width: 200px; /* Adjust width based on content size */
    top: 0;
    left: 50px; /* Adjust based on where you want the text to start */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/******************************   Fitness line chart    **************************************/
.chart-container {
    width: 100%; /* or a specific width */
    height: 400px; /* or a specific height */
    margin-bottom:100px;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}


/**************************   Skills List    *********************************/

.prestige-stars {
    margin-right: 10px; /* Spacing between stars and the skill name */
}

.star {
    color: gold; /* Gold color for the stars */
    font-size: 16px; /* Adjust size as necessary */
    margin-right: 2px; /* Space between stars */
}    

.skills-list {
        padding: 20px;
        background: #f4f4f8;
    }

    .skill {
        margin-bottom: 20px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .skill-header {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        background-color: var(--color-secondary-500); /* IDR Navy */
        color: white;
    }

    .skill-name {
        font-size: 20px;
        font-weight: bold;
    }

    .skill-level {
        font-size: 18px;
    }

    .progress-bar {
        background-color: #e0e0e0;
        height: 25px;
        width: 100%;
    }

    .progress {
        background-color: var(--color-primary-500); /* IDR Teal */
        height: 100%;
        border-radius: 0 5px 5px 0;
        transition: width 0.5s ease;
    }

    .next-level {
        font-size: 16px;
        padding: 5px 10px;
        background-color: #eee;
        text-align: right;
        color: #555;
    }
/*************************************  Incomings   ********************/
.form-container {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr auto;
    gap: 10px;
    align-items: center;
}

.entry-item {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
}

button {
    padding: 10px;
}

.financial-summaries p {
    margin-bottom: 5px;
}

/*********************************  Outgoings  **************************/
.form-container {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr auto;
    gap: 10px;
    align-items: center;
}

.bill-item {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

input, select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
}

button {
    padding: 10px;
}

.financial-summaries p {
    margin-bottom: 5px;
}

/*******************************    Grids   *******************************/
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Ensures two columns */
    gap: 10px;
    width: 100%; /* Ensures it takes full width */
}

.grid-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Ensures padding doesn't affect the width */
}

    .grid-item input {
        width: 100%; /* Ensures input fills the space */
        border: 1px solid #ccc;
        padding: 8px;
        background-color: #e9ecef; /* Disabled background color */
        color: #495057; /* Text color */
        border-radius: 4px;
    }
/**************************   Top Nav   ******************************/
.top-nav {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background-color: var(--color-primary-500); /* IDR Teal */
}

.nav-button {
    flex-grow: 1;
    padding: 10px 20px;
    color: white;
    border: none;
    background-color: transparent;
    font-size: 16px; /* Adjust font size as needed */
    transition: background-color 0.3s ease;
    cursor: pointer;
}

    .nav-button:hover, .nav-button.active {
        background-color: var(--color-primary-600); /* Darker Teal for hover/active */
    }

/********************************  Page Layout  ************************************/
.page {
    position: relative;
    min-height: 100vh;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
    position: relative;
    z-index: 5; /* Higher than default but lower than modals */
}

/********************************  Bottom Nav   ************************************/
.bottom-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--color-secondary-800); /* IDR Navy */
    padding: 5px 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    z-index: 10; /* Higher than content but lower than modals */
    height: 60px; /* Define a fixed height for the nav */
}

.nav-item {
    text-align: center;
    flex-grow: 1;
    color: white;
    text-decoration: none;
    padding: 5px 0;
}

    .nav-item img {
        display: block;
        margin: 0 auto 5px;
        width: 20px; /* Adjust size based on your preference */
        height: auto;
    }

    .nav-item span {
        display: block;
        font-size: 0.75rem;
}

/***************  Full-screen overlay to hold the spinner ******************/
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
}

/* Spinner styling */
.loader {
    border: 5px solid #f3f3f3; /* Light grey for the undeterminate part */
    border-top: 5px solid var(--color-primary-500); /* IDR Teal for the determinate part */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/********************************  Modal Styles  ************************************/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-items: center; /* Center the modal vertically */
    z-index: 1100;
    overflow-y: auto;
    padding: 5px 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

.modal-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content {
    padding: 20px;
    border: none !important; /* Override any existing border */
    overflow-y: auto;
    background-color: white;
}

/********************************  Other Styles  ************************************/
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: var(--color-primary-500); /* IDR Teal */
}

.btn-primary {
    color: #fff;
    background-color: var(--color-primary-500); /* IDR Teal */
    border-color: var(--color-primary-600); /* Darker Teal */
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(0, 222, 178, 0.5); /* IDR Teal */
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-success-500);
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/*****************      Notification days *****************/
.notification-days {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.notification-days label {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.notification-days label:hover {
    background-color: #e0e0e0;
}

.notification-days input[type="checkbox"] {
    margin-right: 5px;
}

/* ============================================================
   US-029: Mobile-Optimised Responsive Design
   ============================================================ */

/* Ensure touch targets are at least 44px on mobile */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .btn-lg {
        font-size: 1rem;
    }

    /* Stack hero sections vertically */
    .display-4 {
        font-size: 1.75rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    /* Reduce container padding on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Card body padding reduction */
    .card-body.p-5 {
        padding: 1.5rem !important;
    }

    /* Accordion buttons */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.875rem 1rem;
    }

    /* Footer adjustments */
    footer .d-flex.gap-3 {
        gap: 0.5rem !important;
    }

    /* Signing canvas responsive */
    #signatureCanvas {
        height: 120px !important;
    }

    /* Stat cards in "Why Intentia matters" */
    .card h3.fw-bold {
        font-size: 1.5rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2rem;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow */
.container, .container-fluid {
    overflow-x: hidden;
}
