/* ================================================================
   ΜΦΗ ΕΝΗΛΙΟΝ — χρώματα λογότυπου
   Πράσινο #8A8E4E · Κίτρινο #EDA900 · Γαλάζιο #47AED9 · Κόκκινο #D62C1B
   ================================================================ */

:root {
    --en-green: #6E7240;
    --en-green-deep: #474A28;
    --en-green-line: rgba(255, 255, 255, 0.14);
    --en-amber: #EDA900;
    --en-gold: #C89000;
    --en-badge: #E8542B;
    --en-blue: #47AED9;
}

/* ── Καμβάς σελίδας ─────────────────────────────────────────── */

.fi-body,
.fi-main-ctn,
.fi-page {
    background-color: var(--en-green);
}

/* ── Πλαϊνό μενού ───────────────────────────────────────────── */

.fi-sidebar,
.fi-sidebar-header,
.fi-sidebar-nav {
    background-color: var(--en-green-deep);
    border-color: var(--en-green-line);
}

.fi-sidebar-header {
    box-shadow: none;
    border-bottom: 1px solid var(--en-green-line);
}

.fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.7rem;
    font-weight: 600;
}

.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-label {
    color: rgba(255, 255, 255, 0.92) !important;
}

.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-icon {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Hover σε ανενεργή επιλογή — διακριτικό πράσινο, όχι λευκό */
.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn:hover {
    background-color: #D69800 !important;
}

/* Ενεργή επιλογή — κίτρινο φόντο με σκούρο κείμενο */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background-color: var(--en-amber) !important;
}

.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-label,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-sidebar-item-icon,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label,
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-icon {
    color: #3D2C00 !important;
}

/* Το πλακίδιο αριθμού μέσα στην ενεργή επιλογή */
.fi-sidebar-item.fi-active .fi-sidebar-item-badge-ctn .fi-badge {
    background-color: rgba(61, 44, 0, 0.18) !important;
    color: #3D2C00 !important;
}

/* Hover σε μη ενεργή επιλογή */
.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-btn:hover .fi-sidebar-item-label,
.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-btn:hover .fi-sidebar-item-icon {
    color: #ffffff !important;
}

.fi-sidebar-group-collapse-button {
    color: rgba(255, 255, 255, 0.55);
}

.fi-sidebar-item-badge {
    background-color: var(--en-amber);
    color: #3D2C00;
}

/* ── Πάνω μπάρα ─────────────────────────────────────────────── */

.fi-topbar > nav,
.fi-topbar,
.fi-topbar-ctn {
    background-color: var(--en-gold);
    border-bottom: 1px solid var(--en-green-line);
    box-shadow: none;
}

.fi-topbar .fi-icon-btn,
.fi-topbar .fi-link-label {
    color: #ffffff;
}

/* Badge αδιάβαστων ειδοποιήσεων.
   Οι κλάσεις fi-color-primary του Filament ορίζουν δικό τους
   χρώμα — χρειάζεται !important για να υπερισχύσει. */
.fi-topbar-database-notifications-btn .fi-icon-btn-badge-ctn .fi-badge {
    background-color: var(--en-badge) !important;
    color: #ffffff !important;
    border-color: var(--en-badge) !important;
    font-weight: 600;
}

.fi-topbar-database-notifications-btn .fi-icon-btn-badge-ctn .fi-badge * {
    color: #ffffff !important;
}

/* Πεδίο αναζήτησης — λευκό φόντο, σκούρο κείμενο */
.fi-topbar input[type="search"],
.fi-topbar input[type="text"],
.fi-global-search-field input,
.fi-topbar .fi-input {
    background-color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #1f2937 !important;
}

.fi-topbar input::placeholder,
.fi-global-search-field input::placeholder {
    color: #9ca3af !important;
}

.fi-topbar .fi-input-wrp,
.fi-global-search-field .fi-input-wrp {
    background-color: #ffffff !important;
}

/* ── Τίτλοι & breadcrumbs πάνω στο πράσινο ──────────────────── */

.fi-header-heading,
.fi-page > .fi-header .fi-header-heading {
    color: #ffffff;
}

.fi-header-subheading {
    color: rgba(255, 255, 255, 0.75);
}

.fi-breadcrumbs-item-label,
.fi-breadcrumbs a,
.fi-breadcrumbs span {
    color: rgba(255, 255, 255, 0.75);
}

.fi-breadcrumbs-item-separator {
    color: rgba(255, 255, 255, 0.4);
}

.fi-wi-header-heading {
    color: #ffffff;
}

/* ── Λευκές κάρτες & πίνακες ────────────────────────────────── */

.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-modal-window,
.fi-dropdown-panel {
    background-color: #ffffff;
    border-radius: 0.75rem;
}

.fi-section,
.fi-ta-ctn {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.fi-wi-stats-overview-stat {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.fi-section .fi-section-header-heading,
.fi-ta-header-heading,
.fi-modal-heading {
    color: #1f2937;
}

/* ── Λεπτομέρειες ───────────────────────────────────────────── */

.fi-tabs-item-active {
    background-color: var(--en-amber);
    color: #3D2C00;
}

.fi-ta-empty-state-heading {
    color: #374151;
}

/* ================================================================
   ΠΙΝΑΚΑΣ ΕΛΕΓΧΟΥ
   ================================================================ */

/* Η λευκή κάρτα κάθε ομάδας */
.fi-wi-stats-overview .fi-section,
.fi-sc-section > .fi-section {
    border-radius: 1rem !important;
    border: none !important;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 8px 24px rgba(16, 24, 40, 0.08) !important;
}

/* Ο τίτλος — ίδια εσοχή με την ενότητα Γενεθλίων */
.fi-wi-stats-overview .fi-section-header {
    padding: 1.25rem 1.5rem 0 !important;
}

.fi-wi-stats-overview .fi-section-header-heading {
    color: #14160E !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.005em;
}

/* Το περιεχόμενο με τα στατιστικά */
.fi-wi-stats-overview .fi-section-content-ctn {
    padding: 1.15rem 1.5rem 1.5rem !important;
}

/* Το πλέγμα των καρτών με μεγαλύτερο κενό */
.fi-wi-stats-overview .fi-section-content {
    gap: 1rem !important;
}

/* ── Τα στατιστικά ──────────────────────────────────────────── */

/* Κάθε στατιστικό είναι δική του κάρτα */
.fi-wi-stats-overview-stat {
    padding: 1.3rem 1.4rem !important;
    background-color: #FCFCFA;
    border: 1px solid #E4E6DA;
    border-radius: 0.8rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    height: 100%;
}

.fi-wi-stats-overview-stat:hover {
    border-color: #C7CAB4;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.09);
    transform: translateY(-2px);
}

/* Απόσταση ανάμεσα στις κάρτες */
.fi-wi-stats-overview .fi-section-content .fi-grid-col {
    padding: 0 !important;
}

/* Ετικέτα με εικονίδιο */
.fi-wi-stats-overview-stat-label {
    color: #5F6156 !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
}

.fi-wi-stats-overview-stat-label-ctn .fi-icon {
    color: #8A8E4E !important;
}

/* Ο αριθμός */
.fi-wi-stats-overview-stat-value {
    color: #14160E !important;
    font-size: 2.15rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    margin: 0.45rem 0 0.3rem !important;
}

/* Η περιγραφή */
.fi-wi-stats-overview-stat-description {
    color: #8B8D82 !important;
    font-size: 0.78rem !important;
}

/* ── Πίνακες & κάρτα καλωσορίσματος ─────────────────────────── */

.fi-ta-ctn,
.fi-wi-account,
.fi-account-widget {
    border-radius: 1rem !important;
    border: none !important;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 8px 24px rgba(16, 24, 40, 0.08) !important;
}

/* ================================================================
   ΣΕΛΙΔΑ ΣΥΝΔΕΣΗΣ
   ================================================================ */

/* Ο καμβάς — μόνο στη σελίδα σύνδεσης */
body.fi-body:has(.fi-simple-layout) {
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(237, 169, 0, 0.16), transparent 65%),
        radial-gradient(ellipse 65% 45% at 50% 100%, rgba(71, 174, 217, 0.14), transparent 65%),
        linear-gradient(158deg, #5A5E32 0%, #6E7240 48%, #4E5229 100%) !important;
    background-attachment: fixed;
}

/* Η λευκή κάρτα */
main.fi-simple-main {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 1.25rem !important;
    padding: 2.4rem 2.5rem 2.1rem !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 24px 60px rgba(0, 0, 0, 0.28) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
}

/* Τίτλος */
.fi-simple-header-heading {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    color: #14160E !important;
}

.fi-simple-header {
    padding-bottom: 1.3rem;
    border-bottom: 1px solid #EDEEE6;
    margin-bottom: 0.4rem;
}

/* ── Το κουμπί ──────────────────────────────────────────────── */

main.fi-simple-main .fi-btn {
    background-image: linear-gradient(115deg, #F5C232 0%, #EDA900 38%, #6BBDDF 82%, #47AED9 100%) !important;
    background-color: transparent !important;
    border: none !important;
    color: #17293B !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
    padding: 0.8rem 1.25rem !important;
    border-radius: 0.7rem !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 1px 2px rgba(120, 85, 0, 0.2),
        0 8px 20px rgba(237, 169, 0, 0.4) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

main.fi-simple-main .fi-btn:hover {
    background-image: linear-gradient(115deg, #FFD661 0%, #F7B814 38%, #82C9E6 82%, #5CBBE0 100%) !important;
    transform: translateY(-1.5px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(120, 85, 0, 0.22),
        0 12px 28px rgba(237, 169, 0, 0.5) !important;
}

main.fi-simple-main .fi-btn:active {
    background-image: linear-gradient(115deg, #D89A00 0%, #C98F00 38%, #3D9BC2 82%, #3390B8 100%) !important;
    transform: translateY(1px);
    box-shadow: inset 0 2px 6px rgba(100, 70, 0, 0.35) !important;
}

/* ── Το footer ──────────────────────────────────────────────── */

.en-footer {
    margin-top: 1.1rem;
    padding-bottom: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.8;
}

/* Αέρας κάτω από την κάρτα σύνδεσης */
.fi-simple-layout {
    padding-bottom: 1.5rem;
}

.en-footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.en-footer-links a:hover {
    color: #F5C232;
    text-decoration: underline;
}

.en-footer-copy {
    color: rgba(255, 255, 255, 0.68);
}

.en-footer-by {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
}

.en-footer-by a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
}

.en-footer-by a:hover {
    color: #F5C232;
}

/* Στις εσωτερικές σελίδες */
.fi-main .en-footer {
    padding: 1.4rem 0 0.8rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}


/* ── Εισαγωγικό κείμενο σύνδεσης ────────────────────────────── */

/* Ολόκληρη η σύνθεση κεντραρισμένη, με αναπνοή */
.fi-simple-layout {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.25rem 1rem !important;
    gap: 0;
}

.en-login-intro {
    text-align: center;
    margin: 0 0 1.6rem;
    max-width: 30rem;
}

/* Το κενό ανάμεσα στο κείμενο και την κάρτα */
.fi-simple-main-ctn {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    align-items: flex-start !important;
    min-height: 0 !important;
}

/* Μικρή ετικέτα πάνω από τον τίτλο */
.en-login-eyebrow {
    display: inline-block;
    color: #F5C232;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(245, 194, 50, 0.35);
    border-radius: 999px;
    background-color: rgba(245, 194, 50, 0.08);
}

.en-login-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.7rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

.en-login-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.005em;
}

/* Η κάρτα δεν χρειάζεται δεύτερο διαχωριστικό */
.fi-simple-header {
    padding-bottom: 1.15rem !important;
    border-bottom: 1px solid #EFF0E8 !important;
    margin-bottom: 0.6rem !important;
}

/* Η σημείωση εμπιστευτικότητας */
.en-footer-notice {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.72rem;
    line-height: 1.6;
    max-width: 26rem;
    margin: 0 auto 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 640px) {
    .en-login-title {
        font-size: 1.45rem;
    }

    .en-login-subtitle {
        font-size: 0.85rem;
    }
}
