﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;

}

/* ensure no parent prevents full-viewport centering */
html, body, app, #app {
  height: 100%;
}

/* if your layout adds a wrapper element, make it full height as well */
.layout-full-height, .main-layout {
  min-height: 100%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyA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ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.radzen-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.validadorSpan {
    color: red;
    display: block;
    height: 15px;
}


.dialog-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dialog-footer {
    margin-top: auto; /* Push the footer to the bottom */
    padding: 10px;
    text-align: right;
    background-color: #f9f9f9; /* Optional: background color to separate footer visually */
    border-top: 1px solid #ddd; /* Optional: add a border to separate footer from content */
}

.RadzenButton {
    margin-right: 10px; /* Adds space between buttons */
}

.breadcrumb {
    margin-top: 0px;
    margin-bottom: 20px;
}

.nexusTitle {
    font-weight: bold;
    -webkit-font-smoothing:always;
    font-family:Montserrat;
    font-size:initial;
}

.homepage {
    background: url('/img/hexagonal2.png') no-repeat center center;
    background-size: cover;
    height: 85vh; /* Full viewport height */

    /* layout */
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal centering */
    justify-content: center; /* vertical centering */
    gap: 0.6rem; /* space between H1 and H5 */
    text-align: center;
}

/* Tight, centered spacing for the headings */
.homepage .neon-title,
.homepage .neon-subtitle {
    margin: 0;
    line-height: 1.05;
    display: block;
    color: #7bc9f0 !important;
}

/* Optional: slightly smaller subtitle on narrow screens */
@media (max-width: 640px) {
    .homepage .neon-title {
        font-size: 1.75rem;
    }

    .homepage .neon-subtitle {
        font-size: 1rem;
    }
}

.custom-card {
    background-image: url('/img/hexagonal2.png'); /* Path to your image */
    background-size:contain; /* Ensures the image covers the entire card */
    background-position: center; /* Centers the image */
    background-repeat: repeat; /* Prevents repeating the image */
    height: 400px; /* Example height, you can adjust based on your design */
    color: white; /* Ensure text is readable on top of the image */
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Vertically aligns the content inside the card */
    text-align: center;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

.fas.fa-spinner {
    font-size: 24px;
    color: blue;
}


/* center the login page wrapper (horizontal + vertical) */
.login-page {
    min-height: 100vh; /* full viewport height; if you have a header, use calc(100vh - 60px) */
    box-sizing: border-box;
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
    padding: 1rem; /* small safe padding on mobile */
    width: 100%;
    overflow-x: hidden;
}

    /* remove Radzen row vertical margin inside the centered wrapper */
    .login-page .rz-row,
    .login-page .login-row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* ensure columns/cards don't force the wrapper taller than the viewport */
    .login-page .rz-column,
    .login-page .rz-card,
    .login-page .custom-card {
        max-width: 100%;
        box-sizing: border-box;
    }


    /* Pill-style RadzenSwitch */
    .rz-switch .rz-switch-track {
        border-radius: 999px !important;
    }

    .rz-switch .rz-switch-thumb {
        border-radius: 50% !important;
    }


/* Updated toggle styles targeting Radzen rendered button element (.rz-button) */

.rz-button.toggle-btn,
.toggle-btn.rz-button {
    --toggle-bg: transparent;
    --toggle-border: rgba(0,0,0,0.08);
    --toggle-color: var(--rz-primary, #1976d2);
    --toggle-selected-bg: var(--rz-primary, #0d6efd);
    --toggle-selected-color: #ffffff;
    --toggle-radius: 8px;
    --toggle-padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: var(--toggle-padding);
    font-size: 0.92rem;
    color: var(--toggle-color);
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    border-radius: var(--toggle-radius);
    cursor: pointer;
    user-select: none;
    transition: background .14s ease, color .14s ease, transform .06s ease, box-shadow .14s ease, border-color .14s ease;
    box-shadow: none;
}

    /* Hover */
    .rz-button.toggle-btn:hover,
    .toggle-btn.rz-button:hover {
        transform: translateY(-2px);
        background: rgba(0,0,0,0.03);
        border-color: rgba(0,0,0,0.12);
    }

    /* Active click micro animation */
    .rz-button.toggle-btn:active,
    .toggle-btn.rz-button:active {
        transform: translateY(0);
        transition: transform .05s;
    }

    /* Strong selected / pressed state (either .selected class or aria-pressed="true") */
    .rz-button.toggle-btn.selected,
    .rz-button.toggle-btn[aria-pressed="true"],
    .toggle-btn.rz-button.selected,
    .toggle-btn[aria-pressed="true"].rz-button {
        background: var(--toggle-selected-bg) !important;
        color: var(--toggle-selected-color) !important;
        border-color: rgba(0,0,0,0.06) !important;
        box-shadow: 0 8px 20px rgba(13,110,253,0.18);
        transform: translateY(-1px);
    }

        /* Add a checkmark indicator at the start of selected toggles */
        .rz-button.toggle-btn.selected::before,
        .rz-button.toggle-btn[aria-pressed="true"]::before {
    
            display: inline-block;
            margin-right: 8px;
            font-size: 0.9em;
            line-height: 1;
            opacity: 0.95;
            color: rgba(255,255,255,0.95);
            transform: translateY(-1px);
        }

    /* Focus-visible: clear keyboard ring */
    .rz-button.toggle-btn:focus-visible,
    .toggle-btn.rz-button:focus-visible {
        outline: 3px solid rgba(13,110,253,0.22);
        outline-offset: 2px;
        border-radius: calc(var(--toggle-radius) + 1px);
    }

    /* Compact variant */
    .rz-button.toggle-btn.small,
    .toggle-btn.small.rz-button {
        padding: 4px 8px;
        font-size: 0.86rem;
    }

/* Page header of a radzendatagrid: title left, actions right */

.sd-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* title left, actions right */
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.sd-header-left h3 {
    margin: 0;
    font-weight: 600;
}

.sd-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .sd-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sd-header-right {
        width: 100%;
        justify-content: flex-start;
    }
}

.multi-line-header {
    white-space: normal !important;
    line-height: 1.15 !important;
    height: auto !important;
}


/* DSD versoes */
.radzen-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}



.card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .card.add-new {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 48px;
        color: #666;
        background: #f7f7f7;
    }

.card-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-footer .badge {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 6px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.8em;
}

/* highlight selected academic year in red */
.lectivo-value {
    color: #c62828; /* red - adjust if you prefer different tone */
    font-weight: 600;
}

/* Smaller status filter buttons used by DSDVersaoList */
.status-filter-btn {
    min-width: 56px !important;
    padding: 4px 8px !important;
    height: 28px !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    border: none !important;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

    /* Visual for toggled/active button */
    .status-filter-btn.selected {
        transform: translateY(-1px);
        box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    }

/* small round count badge used in status filter buttons */
.status-count-badge {
    display: inline-block;
    min-width: 20px;
    padding: 2px 6px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.18); /* subtle translucent bg; overridden by inline color if needed */
    color: inherit;
    box-shadow: rgba(0,0,0,0.06) 0 1px 1px;
}

/* helper text below status filter buttons */
.status-filter-help {
    font-size: 0.85rem;
    color: #6c757d; /* muted gray */
    margin-top: 6px;
    margin-bottom: 12px;
    margin-left: 4px;
    line-height: 1.2;
    font-style: normal;
}

/* helper to make the template wrapper fill the TD and cover cell padding */
.cell-fill {
    display: block;
    width: 100%;
    box-sizing: border-box;
}
    /* adjust these values if your theme uses different td padding */
    .cell-fill.cover-padding {
        width: calc(100% + 16px);
        margin-left: -8px;
        margin-right: -8px;
    }


/* navigation - homepages - cards */

.navigation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.navigation-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.navigation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,190,255,0.3);
    border-color: rgba(0,190,255,0.5);
}

.navigation-icon {
    font-size: 2rem;
    color: rgba(0,190,255,0.8);
    margin-bottom: 0.5rem;
}

.navigation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #001f3f;
    margin-bottom: 0.5rem;
}

.navigation-title-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: super; /* 👈 isto faz o efeito superscript real */
}

.navigation-title-badge-danger {
    background: #ef4444;
    color: white;
}

.navigation-title-badge-alert {
    background: #ffd800;
    color: black;
}

.navigation-title-badge-ok {
    background: #4cff00;
    color: black;
}


.navigation-subtitle {
    font-size: 0.85rem;
    color: rgba(0,0,0,0.6);
}

.navigation-card-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 1200px) {
    .navigation-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navigation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .navigation-grid {
        grid-template-columns: 1fr;
    }
}


.multiline-cell {
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.2;
}

/* Cards in integration page */

/* Cyan */
/* ── Neon Stat Cards ───────────────────────────────────────── */
/* ── Neon Stat Cards ───────────────────────────────────────── */
.neon-stat-card {
    position: relative;
    background: #f0fdff;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid #06b6d4;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 0 5px rgba(6, 182, 212, 0.25), inset 0 0 10px rgba(6, 182, 212, 0.05);
}

.neon-stat-icon {
    margin-bottom: 0.4rem;
    color: #06b6d4;
}

.neon-stat-icon .material-symbols-outlined {
    font-size: 2rem;
    color: #06b6d4;
}

.neon-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 0.4rem;
    color: #0e7490;
}

.neon-stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0891b2;
    opacity: 0.85;
}

.neon-cyan, .neon-purple, .neon-pink, .neon-green {
    border-color: #06b6d4;
}

/* Remove border around Radzen sidebar menu items (humanistic theme) */
.rz-sidebar .rz-navigation-item,
.rz-sidebar .rz-navigation-item:hover,
.rz-sidebar .rz-navigation-item.rz-state-active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.rz-panel-menu .rz-navigation-item,
.rz-panel-menu .rz-navigation-item:hover,
.rz-panel-menu .rz-navigation-item.rz-state-active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
