@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

/* ===== TOKENS ===== */
:root {
    --black: #000000;
    --white: #FFFFFF;
    --brand: #1640d6;
    --brand-dark: #1233b0;
    --brand-light: #dde3fa;
    --brand-bg: #eef0fc;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;
    --success: #22c55e;
    --font-title: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* ===== BASE ===== */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--text-primary);
}

a, .btn-link {
    color: var(--brand);
}

.btn-primary {
    color: var(--white);
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--white), 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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: var(--white);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


.hero {
    min-height: 100vh;
    background: radial-gradient(circle at top left, #dfe7ff 0%, transparent 30%), radial-gradient(circle at bottom right, #d6dcff 0%, transparent 30%), #f5f7ff;
    overflow: hidden;
    position: relative;
}

/* NAVBAR */

.navbar {
    padding: 1.2rem 4rem;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 90px;
   padding-right: 10px;
   padding-left: 10px;
}

/* HERO */

.hero-body {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 3rem 4rem 5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

/* LEFT */

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.top-badge {
    width: fit-content;
    background: white;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-size: 14px;
    font-weight: 600;
}

.badge-live {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.95;
    margin: 0;
    color: #111827;
    letter-spacing: -3px;
}

    .hero-title span {
        color: #813124;
    }

.hero-sub {
    max-width: 620px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4b5563;
}

/* ACTIONS */

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-primary-cta {
    background: #813124;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
}

    .btn-primary-cta:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .btn-primary-cta:hover {
        transform: translateY(-2px);
    }

.main-button {
    background-color: #813124 !important;
    color: white !important;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
}

.main-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main-button:hover {
    transform: translateY(-2px);
}


.btn-secondary-cta {
    background: white;
    border: 1px solid #dbe1ff;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
}

/* RIGHT */

.hero-right {
    position: relative;
}

.image-wrapper {
    position: relative;
}

    .image-wrapper img {
        width: 100%;
        height: 720px;
        object-fit: cover;
        border-radius: 36px;
        box-shadow: 0 30px 80px rgba(22,64,214,0.2), 0 10px 20px rgba(0,0,0,0.08);
    }

/* FLOATING CARDS */

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    font-weight: 700;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.top-card {
    top: 30px;
    left: -40px;
}

.bottom-card {
    bottom: 30px;
    right: -40px;
}

/* TAG */

.tag-item {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 2rem;
    background: var(--brand-bg);
    border-bottom: 1px solid rgba(22, 64, 214, 0.1);
}

* {
    -webkit-tap-highlight-color: transparent;
}

.hero,
.hero * {
    user-select: none;
}

button {
    user-select: none;
}
*:focus {
    outline: none;
}


/* MOBILE */

@media (max-width: 980px) {

    .hero-body {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem 4rem;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .image-wrapper img {
        height: 450px;
    }

    .top-card,
    .bottom-card {
        position: static;
        margin: 1rem 0;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }
}


.wizard {
    max-width: 720px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.success {
    text-align: center;
    padding: 40px 20px;
}

    .success h3 {
        font-size: 24px;
        color: #16a34a;
    }


.step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: stepFade 0.25s ease-in-out;
}

@keyframes stepFade {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

    .step h3 {
        margin-bottom: 10px;
        font-size: 20px;
        color: #111827;
    }


label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-top: 10px;
}

input, select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

    input:focus, select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    }


    input:disabled, select:disabled {
        background: #f3f4f6;
        color: #9ca3af;
        cursor: not-allowed;
    }


button {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary-cta {
    background: #2563eb;
    color: white;
}

    .btn-primary-cta:hover {
        background: #1d4ed8;
    }

button:not(.btn-primary-cta) {
    background: #e5e7eb;
    color: #111827;
}

    button:not(.btn-primary-cta):hover {
        background: #d1d5db;
    }

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}


@media (max-width: 768px) {

    .wizard {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        padding: 16px;
    }

    h2 {
        font-size: 22px;
    }

    input, select {
        font-size: 16px;
        padding: 12px;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
        padding: 14px;
    }

    .progress-text {
        font-size: 12px;
    }
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}




.admin-container {
    padding: 20px;
    max-width: 1400px;
    margin: auto;
}

.admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

    .admin-top h1 {
        font-size: 32px;
        margin: 0;
        color: #111827;
    }

    .admin-top p {
        color: #6b7280;
        margin-top: 5px;
    }

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.event-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    transition: 0.25s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

    .event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }

.active-card {
    border: 2px solid #2563eb;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

    .event-header h3 {
        margin: 0;
        font-size: 22px;
        color: #111827;
    }

    .event-header span {
        color: #6b7280;
        font-size: 14px;
    }

.price-tag {
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.event-description {
    margin-top: 15px;
    color: #4b5563;
    line-height: 1.5;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.mini-stat {
    background: #f9fafb;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

    .mini-stat strong {
        display: block;
        font-size: 22px;
        color: #111827;
    }

    .mini-stat span {
        color: #6b7280;
        font-size: 13px;
    }

.event-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    border: none;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

    .btn-primary:hover {
        background: #1d4ed8;
    }

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

    .btn-secondary:hover {
        background: #e5e7eb;
    }

.details-card {
    margin-top: 30px;
    background: white;
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.details-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

    .details-top h2 {
        margin: 0;
    }

.details-money {
    background: #dcfce7;
    color: #166534;
    padding: 14px 20px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 20px;
}

.details-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

    .details-stats div {
        background: #f9fafb;
        border-radius: 16px;
        padding: 16px;
        text-align: center;
    }

    .details-stats strong {
        display: block;
        font-size: 24px;
        margin-bottom: 5px;
    }

    .details-stats span {
        color: #6b7280;
    }

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

thead {
    background: #f9fafb;
}

th {
    text-align: left;
    padding: 16px;
    font-size: 14px;
    color: #6b7280;
}

td {
    padding: 16px;
    border-top: 1px solid #f3f4f6;
}

.small-btn {
    padding: 8px 14px;
    font-size: 13px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    padding: 25px;
    animation: popup 0.2s ease;
}

    .modal-card h2 {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .modal-card input,
    .modal-card textarea,
    .modal-card select {
        width: 100%;
        padding: 14px;
        border-radius: 14px;
        border: 1px solid #d1d5db;
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .modal-card textarea {
        min-height: 120px;
        resize: vertical;
    }

.checkbox-row {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .admin-container {
        padding: 15px;
    }

    .admin-top h1 {
        font-size: 26px;
    }

    .event-card {
        padding: 18px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .details-stats {
        grid-template-columns: 1fr;
    }

    .event-buttons {
        flex-direction: column;
    }

        .event-buttons button {
            width: 100%;
        }

    .modal-actions {
        flex-direction: column;
    }

        .modal-actions button {
            width: 100%;
        }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        background: #f9fafb;
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 15px;
    }

    td {
        border: none;
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        td::before {
            font-weight: 700;
            color: #6b7280;
        }

        td:nth-child(1)::before {
            content: "Entidade";
        }

        td:nth-child(2)::before {
            content: "Equipa";
        }

        td:nth-child(3)::before {
            content: "Pago";
        }

        td:nth-child(4)::before {
            content: "Acao";
        }
}

.team-cell {
    display: flex;
    flex-direction: column;
    color: var(--black);
    gap: 6px;
    align-items: flex-start;
}

    .team-cell strong {
        font-size: 14px;
        color: #111827;
    }


.payment-methods {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 1.5rem 0;
}

.payment-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 1.25rem 2rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    min-width: 140px;
    background: #fff;
}

.payment-logo {
    max-height: 32px;
    max-width: 150px;
    object-fit: cover;
}

    .payment-card:hover {
        border-color: #aaa;
    }

    .payment-card.selected {
        border-color: #1a73e8;
        background: #f0f6ff;
    }

    .payment-card i {
        font-size: 32px;
        color: #444;
    }

    .payment-card.selected i {
        color: #1a73e8;
    }

    .payment-card span {
        font-size: 15px;
        font-weight: 500;
    }

.payment-details {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-top: 1rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

    .detail-row:last-child {
        border-bottom: none;
    }

    .detail-row span {
        color: #666;
    }

@media (max-width: 768px) {

    .payment-methods {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .payment-card {
        aspect-ratio: 1 / 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 18px;
        border-radius: 16px;
    }

    .payment-logo {
        max-height: 60px;
        max-width: 80%;
        object-fit: contain;
        margin-bottom: 8px;
    }

    .payment-card span {
        font-size: 14px;
        text-align: center;
    }
}


.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-box {
    background: white;
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    text-align: center;
}

    .login-card h2 {
        margin-bottom: 5px;
        color: #111827;
    }

    .login-card p {
        margin-bottom: 20px;
        color: #6b7280;
        font-size: 14px;
    }

    .login-card input {
        width: 100%;
        padding: 12px;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        font-size: 14px;
    }

    .login-card button {
        width: 100%;
        padding: 12px;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
    }

        .login-card button:hover {
            background: #1d4ed8;
        }

.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.nav-side {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* logos pequenos */
.nav-mini-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: 0.2s ease;
}

    .nav-mini-logo:hover {
        opacity: 1;
        transform: scale(1.05);
    }

.nav-mini-logo2 {
    height: 56px !important;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: 0.2s ease;
}

    .nav-mini-logo2:hover {
        opacity: 1;
        transform: scale(1.05);
    }




.report-page {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Header */
.report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.report-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
}

.report-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.report-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

    .btn-export:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }

    .btn-export:not(:disabled):hover {
        opacity: 0.88;
        transform: translateY(-1px);
    }

.btn-pdf {
    background: #dc2626;
    color: #fff;
}

.btn-excel {
    background: #16a34a;
    color: #fff;
}

/* Filtros */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 180px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select,
.filter-input {
    padding: 0.55rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

    .filter-select:focus,
    .filter-input:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    }

.filter-stats {
    display: flex;
    align-items: center;
}

.stat-badge {
    background: #ede9fe;
    color: #5b21b6;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Tabela */
.table-wrapper {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .report-table thead {
        background: #f3f4f6;
    }

    .report-table th {
        padding: 0.85rem 1rem;
        text-align: left;
        font-size: 0.78rem;
        font-weight: 700;
        color: #374151;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }

        .report-table th.sortable {
            cursor: pointer;
            user-select: none;
        }

            .report-table th.sortable:hover {
                color: #6366f1;
            }

        .report-table th.sorted {
            color: #6366f1;
        }

.sort-icon {
    font-size: 0.7rem;
    opacity: 0.7;
}

.report-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.1s;
}

    .report-table tbody tr:last-child {
        border-bottom: none;
    }

    .report-table tbody tr:hover {
        background: #fafafa;
    }

.report-table td {
    padding: 0.8rem 1rem;
    color: #374151;
    vertical-align: middle;
}

.td-name {
    font-weight: 600;
    color: #111827 !important;
}

.td-email {
    color: #6366f1 !important;
    font-size: 0.85rem;
}

.td-nif {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}

.td-activity {
    color: #6b7280 !important;
    font-size: 0.85rem;
}

.td-date {
    color: #9ca3af !important;
    font-size: 0.83rem;
    white-space: nowrap;
}

.nationality-badge {
    display: inline-block;
    background: #f0fdf4;
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid #bbf7d0;
}

/* Estados vazios / loading */
.state-loading,
.state-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cancel-modal {
    width: 520px;
    max-width: 95%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    overflow: hidden;
    animation: modalFade .25s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

    .modal-header h2 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 700;
    }

    .modal-header span {
        color: #777;
        font-size: .9rem;
    }

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

    .modal-icon.danger {
        background: #FEECEC;
        color: #DC3545;
    }

.modal-body {
    padding: 24px;
}

    .modal-body p {
        margin-bottom: 18px;
    }

.refund-box {
    display: flex;
    gap: 15px;
    background: #FFF8E8;
    border: 1px solid #F5D36A;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
}

.refund-icon {
    font-size: 24px;
    color: #D48B00;
    margin-top: 3px;
}

.refund-box h4 {
    margin: 0;
    color: #B36A00;
}

.refund-box p {
    margin: 8px 0;
}

.refund-box small {
    color: #666;
}

.confirm-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px;
    background: #F8F9FA;
    border-radius: 10px;
}

    .confirm-box input {
        margin-top: 5px;
        transform: scale(1.2);
    }

.error-box {
    margin-top: 20px;
    background: #FDECEC;
    color: #C62828;
    border: 1px solid #F5C2C2;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-box {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.btn-secondary,
.btn-danger {
    min-width: 170px;
    height: 46px;
    border-radius: 10px;
    font-weight: 600;
    transition: .2s;
}

.btn-danger {
    background: #DC3545;
    border: none;
    color: white;
}

    .btn-danger:hover:not(:disabled) {
        background: #C82333;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(220,53,69,.25);
    }

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .header-row h3 {
        margin: 0;
    }




.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== Payment Success Screen ===== */

.payment-success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at top, #f4faf6 0%, #eaf2ec 100%);
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.payment-success-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 36px 36px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(16, 90, 50, 0.12), 0 4px 12px rgba(16, 90, 50, 0.06);
    animation: cardFadeIn 0.5s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Success icon --- */
.success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.success-icon {
    width: 96px;
    height: 96px;
}

.success-icon-circle {
    stroke: #2ecc71;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: circleDraw 0.6s ease-out forwards;
}

.success-icon-check {
    stroke: #2ecc71;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw 0.4s ease-out 0.5s forwards;
}

@keyframes circleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Text --- */
.success-title {
    margin: 0 0 12px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b5e34;
    letter-spacing: -0.02em;
}

.success-subtitle {
    margin: 0 0 28px;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #5b6b60;
}

/* --- Details --- */
.success-details {
    background: #f6faf7;
    border: 1px solid #e3efe6;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed #dcebe0;
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    font-size: 0.85rem;
    color: #7c8c81;
    font-weight: 500;
}

.detail-value {
    font-size: 0.92rem;
    color: #223b2c;
    font-weight: 600;
}

/* --- Note --- */
.success-note {
    font-size: 0.82rem;
    color: #93a29a;
    margin: 0 0 28px;
    line-height: 1.4;
}

/* --- Button --- */
.success-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2ecc71, #1e9e58);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .success-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(46, 204, 113, 0.38);
    }

    .success-btn:active {
        transform: translateY(0);
    }

/* --- Responsive --- */
@media (max-width: 480px) {
    .payment-success-card {
        padding: 36px 24px 28px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-title {
        font-size: 1.35rem;
    }
}
