@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');
/* general styles */
:root {
    --orange: #dd9637;
    --blue: #2c418e;
    --gray: #ebebeb;
    --green: #3d814d;
    --header-height: 80px;
    --header-margin: 1em 7vw;
    --border-radius: 12px;
    --transition-duration: 200ms;
    --button-height: 40px;
}
html {
    font-family: 'Roboto', sans-serif;
    background-color: #fafafa;
    cursor: default;
}

/* Native form fields keep their own text/pointer cursor regardless of the
   default above - only needed for browsers that don't already handle this. */
input, textarea, select {
    cursor: auto;
}

/* === NAVBAR === */
.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5em 2em;
    background-color: var(--blue);
    color: white;
    font-size: 12px;
    min-height: 40px;
    gap: 2em;
    border-radius: 8px;
    margin: 1em 2em 0 2em;
}

.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 16px;
}

.navbar-user-text {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}

.navbar-name {
    font-weight: 600;
    font-size: 13px;
    color: white;
}

.navbar-email {
    font-size: 11px;
    color: #ccc;
}

.navbar-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    height: 30px;
    padding: 0 1em;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: all var(--transition-duration) ease;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.navbar-logout-btn:hover, .navbar-logout-btn:focus-visible {
    background-color: #d32f2f;
    border-color: #d32f2f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.navbar-logout-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* === ACCESSIBILITY === */
.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;
}
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition-duration: var(--transition-duration);
}
/* ------------------------------------- */



/* === HEADER === */
header{
    margin: var(--header-margin);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logos{
    display: flex;
    flex-direction: row;
    gap: 1em;
}
header img{
    height: var(--header-height);
}

/* === FORM PAGE HEADER BAR (home button, shared across data-entry pages) === */
.form-header-bar {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
}

.home-btn-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.upload-button-small {
    margin-left: auto;
    margin-right: 2em;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.7em 1.5em;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.upload-button-small i {
    font-size: 14px;
}

.upload-button-small:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(245, 87, 108, 0.6);
}


hr{
    border: 0;
    border-top: 3px solid #ebebeb;
    border-radius: 6px;
}

/* === BUTTONS === */
.btn{
    height: var(--button-height);
    width: 70px;
    margin: 0.5em 0em;
    padding: 0.5em;
    border-radius: var(--border-radius);
    background-color: var(--gray);
    border: none;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-duration) ease;
}

.btn:hover, .btn:active, .btn:focus{
    background-color: var(--orange);
    color: white;
}

.btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ------------------------------------- */


/* === FORM INPUTS === */
input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}


/* === FOOTER === */

small {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.continue {
    margin: 0em 1em;
    color: white;
    background-color: var(--orange);
    padding: 0.6em;
    font-weight: bold;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition-duration) ease;
}

.continue:hover {
    background-color: var(--blue);
}

.continue:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.previous{
    color: black;
    background-color: var(--gray);
}
.previous:hover, .previous:active, .previous:focus{
    background-color: darkgray;
    color: white;
}

.disabled, .disabled:hover, .disabled:active, .disabled:focus{
    background-color: var(--gray);
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}
/* ------------------------------------- */


/* === FLASH MESSAGES === */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.5em;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--green);
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--orange);
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--blue);
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 1em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.flash-close:hover {
    opacity: 1;
}
/* ------------------------------------- */


/* === RESPONSIVE DESIGN === */
@media only screen and (max-width: 1170px) {
/*     header img{
        height: 60px;  
    } */
    header .logos{
        gap: 0em;
    }

    header{
        margin: 1em 3svw;
    }
}

@media only screen and (max-width: 900px) {
/*     header img{
        height: 40px;  
    } */
}

@media only screen and (max-width: 768px) {
    header {
        margin: 1em 2svw;
    }
    
    .btn {
        font-size: 12px;
        padding: 0.4em;
    }
}

@media only screen and (max-width: 600px) {
/*     header img{
        display: none;
    }
     */
/*     header {
        justify-content: center;
    } */
}

/* ===== Shared in-page confirmation modal (e.g. auto-fill "Delete file") ===== */
.confirm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay.active {
    display: flex;
}

.confirm-modal-box {
    background: white;
    border-radius: 16px;
    padding: 2em;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin: 1em;
}

.confirm-modal-title {
    margin: 0 0 0.6em;
    color: #dc3545;
    font-size: 1.05em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.confirm-modal-message {
    margin: 0 0 1.5em;
    color: #555;
    font-size: 0.92em;
    line-height: 1.5;
    white-space: pre-line;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8em;
}

.confirm-modal-cancel {
    padding: 0.6em 1.4em;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: background-color 0.2s;
}

.confirm-modal-cancel:hover {
    background: #ebebeb;
}

.confirm-modal-confirm {
    padding: 0.6em 1.4em;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.confirm-modal-confirm:hover {
    opacity: 0.85;
}

.app-version {
    text-align: center;
    font-size: 0.75em;
    color: #999999;
    padding: 0.5em 0 1em;
}