body, html { background-color: lightgrey }
header {
    background: white;
    position: relative;
    z-index: 2;
}
main {
    z-index: 1;
    position: relative;
    background: white;
    min-height: 50vh;
    box-shadow: 0 0px 15px 5px rgba(0,0,0,0.3)
}
.logo a svg { width: 42px; height: 42px }
.flash { padding:1rem; border-radius:4px; margin-bottom:1rem; cursor:pointer; color:white; }
.flash-success { background:#2d9948; }
.flash-error   { background:#c0392b; }
.flash-warning { background:#d68910; }

.hamburger {
    display: none;
    padding: 0;
    font-size: 32px;
    border: none!important;
    outline: none!important;
    box-shadow: none!important;
}

.hamburger svg {
    width: 40px;
    height: 40px;
}
.recipient-details {
    color:var(--pico-muted-color);
    max-width: 60vw;
    font-size: 14px;
}

table {
    margin-bottom: 50px;
}
table:last-child {
    margin-bottom: 0;
}

section {
    margin-bottom: 0;
}

tr:nth-child(2n) td {
    background:whitesmoke;
}

td {
    border-bottom: 0!important;
    margin-bottom: 5px!important;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
}
.tag-default { background:#45b38e; }
.tag-success { background:#2d9948; }
.tag-flag    { background:#d68910; }

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 0.6rem;
    background: none;
    border: none;
    color: var(--pico-muted-color);
    cursor: pointer;
}
.password-toggle .icon-eye-off { display: none; }
.password-toggle.active .icon-eye { display: none; }
.password-toggle.active .icon-eye-off { display: inline; }

.payments-title { width: 60% }
.payments-actions { width: 40% }
.payments-actions button { width: 100% }

body > footer {
    background: lightgray;
    padding: 20px;
    text-align: center;
    position: relative;
}

body > footer .dev-logo {
    width: 32px;
    margin: 10px;
}

@media (max-width: 768px) {
    main .container { padding: 0!important }
    h2 { text-align: center }
    h4 {
        padding: 0 10px;
        text-align: center;
    }
    .logo svg {
        max-height: 48px!important;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 4rem;
        left: 0;
        background: var(--pico-background-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    nav {
        flex-wrap: wrap;
        position: relative;
    }

    td .tag {
        width: 100%;
        border-radius: 0;
    }
    button, [role="button"] {
        padding: 5px!important;
        margin-bottom: 0!important;
        border-radius: 0!important;
    }
}

/* Login submit button & ultralight 3D flipping book spinner */
button.login-submit-btn {
    position: relative;
    width: 100%;
    min-height: 2.85rem!important;
    padding: 0.5rem 1rem!important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.login-submit-btn .btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-submit-btn.is-loading {
    cursor: wait;
    pointer-events: none;
    opacity: 0.95;
}

.login-submit-btn.is-loading .btn-text {
    opacity: 0;
    transform: translateY(-8px);
    position: absolute;
}

.login-submit-btn .btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    animation: loaderFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-submit-btn.is-loading .btn-loader {
    display: inline-flex;
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom-projection SVG Schoolbook Spinner */
.schoolbook-svg-spinner {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Animated loader text & dots */
.btn-loader-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.btn-loader-dots span {
    display: inline-block;
    animation: pulseLoaderDot 1.35s infinite;
    opacity: 0;
}

.btn-loader-dots span:nth-child(1) { animation-delay: 0.2s; }
.btn-loader-dots span:nth-child(2) { animation-delay: 0.4s; }
.btn-loader-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulseLoaderDot {
    0%, 20% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-1px); }
    80%, 100% { opacity: 0; transform: translateY(0); }
}


