﻿

a {
    text-decoration: none;
}

h1 {color:#0d6efd!important; margin-bottom:22px!important;}

#parohii > ol > li {
  color: #3669b3;
  font-size: 22px;
  font-weight: 300 !important;
  background: url('/agenda/assets/images/russian-orthodox-church.png') no-repeat left center;
  width: fit-content;
  padding-left: 36px;
}

#parohii ul li::marker, #manastiri ul li::marker {
  color: red;

}

#parohii p {
    margin:0;
}

.agenda ul {

margin:0;
padding:10px 18px;
border:1px solid #CCC;
border-right:1px solid #CCC;
border-bottom:none;
list-style:none;
}

.d-flex span {
font-weight: bold;
margin: 0 10px;
}
.d-flex a {
margin: 0 5px;
}

.clickable-row {
    cursor: pointer;
}

.clerici-wa-btn,
.clerici-delete-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    line-height: 1 !important;
}

.clerici-wa-btn .bi,
.clerici-delete-btn .bi {
    display: block;
    line-height: 1;
}

.bilete-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.bilete-action-form {
    display: inline-flex;
    margin: 0;
}

.bilete-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    line-height: 1 !important;
}

.bilete-action-btn .bi {
    display: block;
    line-height: 1;
}

.contracte-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.contracte-action-form {
    display: inline-flex;
    margin: 0;
}

.contracte-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px;
    height: 38px;
    padding: 0 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.contracte-action-btn .bi {
    display: block;
    line-height: 1;
}


p.tip_parohie {font-size:14px;color:#FFF!important}

input, select {
    border:1px solid #000!important;
}

.navig_agenda a.btn-primary, a.btn-secondary.active {
background:#c20000;
border:none;
}

.zi_sapt { 
color: #a94c50; 
font-size: 18px; 
background: rgba(208, 208, 208, 0.3); 
padding: 4px 15px; 
font-weight: bold; 
border:1px solid #CCC;
border-bottom:none;
margin:0;
text-transform:capitalize;
}

.continut-agenda {
border-bottom:1px solid #CCC;
}

.agenda ul li {margin:5px 0;}

.agenda .titlu_eveniment {
margin-left:25px;
}
.afis-sapt-luna {
font-weight:normal!important;
font-size:22px;
color:#000;
}

a.btn-secondary.active , a.btn-secondary.active   {
background: #c20000!important;
}

.btn-secondary, .btn-secondary:hover {
background-color: #fa6060;
color: white;
}

.agenda a.btn-secondary:nth-child(2)  {
margin-left: -6px!important;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border: none;
}

.agenda a.btn-secondary:nth-child(1){
border: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}

 

.agenda a.btn-primary:nth-child(2){
margin-left: -6px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-left: 1px solid #fa6060;
}

.agenda a.btn-primary:nth-child(1){
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}

.navig_agenda .col-md-6 {text-align:center!important;}
.navig_agenda div.col-md-3:nth-child(3) {text-align:right;}

ul.zile-suplimentare {
    column-count: 2; /* Divide the list into 2 columns */
    column-gap: 20px; /* Optional: spacing between columns */
    list-style: none;
}


/* Calendar afisat gen Google */

.luna .day-number { font-weight: bold; margin-bottom: 5px; }
.luna .event {
    font-size: 14px;
}
.luna .form-inline { justify-content: center; gap: 10px; }
.luna table.table td {
    height: 100px;
    width: 14.28%;
    vertical-align: top;
}

.luna .event-even {
    background-color:antiquewhite; /* Gri deschis */
    color: #000;
    padding: 2px 5px;
    margin: 10px 0;
    border-radius: 3px;
}

.luna .event-odd {
    background-color: #e9ecef; /* Gri foarte deschis */
    color: #333;
    padding: 2px 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.luna .bg-info.text-white .day-number {
    font-weight: bold;
    font-size: 1.1em;
}

.luna .form-inline .form-group {
    margin: 0 5px;
}

Clerici Dashboard și Raport Anual
/* Stiluri personalizate pentru a îmbunătăți aspectul și a face bordurile mai vizibile */
        #dispari {
            transition: opacity 0.5s ease-out;
            opacity: 1;
        }
        .form-section-title {
            color: #004d99; /* Albastru închis, mai elegant */
            border-bottom: 3px solid #004d99; /* Linie mai groasă și vizibilă */
            padding-bottom: 8px;
            margin-top: 40px; /* Spațiu sus */
            margin-bottom: 25px; /* Spațiu jos */
            font-weight: 700;
        }
        .form-subsection-title {
            color: #212529;
            border-bottom: 1px solid #ced4da; /* Bordura gri mediu, vizibilă */
            padding-bottom: 5px;
            margin-top: 25px;
            margin-bottom: 15px;
            font-size: 1.25rem;
            font-weight: 600;
        }
        .form-group-box {
            border: 1px solid #adb5bd; /* Bordura GRIE MEDIE, FOARTE VIZIBILĂ */
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
            background-color: #ffffff; /* Fundal alb pentru claritate */
        }
        .form-check {
            margin-bottom: 5px; /* Spațiere între opțiunile radio/checkbox */
        }
        .form-control, .form-select {
            border: 1px solid #adb5bd; /* Bordura GRIE MEDIE, VIZIBILĂ pentru inputuri */
            padding: 0.5rem 0.75rem;
        }
        .input-group-text {
            font-weight: 500;
            background-color: #e9ecef;
            border: 1px solid #adb5bd; /* Bordura la fel de vizibilă ca la input */
        }

/* Sidebar */

        .sidebar-container {
            width: 100%;
        }

/* === Admin Mobile Bar === */
.admin-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: .55rem .9rem;
    margin-bottom: .75rem;
    gap: .5rem;
}

.admin-mobile-user-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .83rem;
    font-weight: 600;
    color: #212529;
}

#adminSidebarOffcanvas .nav-link-custom {
    font-size: .9rem;
    padding: .55rem .85rem;
}

#adminSidebarOffcanvas .sidebar-heading {
    font-size: .68rem;
    letter-spacing: .06em;
}

#adminSidebarOffcanvas hr {
    margin: .35rem 0;
}

        .sidebar-header {
            text-align: center;
        }

        .sidebar-heading {
            font-size: 0.75rem;
            color: #495057 !important; 
            font-weight: 600;
        }

        /* Stil pentru link-urile principale de navigare (nav-pills) */
        .nav-link-custom {
            color: #343a40; 
            font-weight: 500;
            padding: 0.5rem 0.75rem; 
            margin-bottom: 5px;
            border-radius: 0.5rem;
            transition: all 0.2s;
        }

        .nav-link-custom i {
            width: 25px; 
        }

        /* Stil pentru Hover și Active State */
        .nav-link-custom:hover {
            background-color: #f1f3f5; 
            color: #007bff; 
        }
        
        .nav-link-custom.active {
            background-color: #007bff !important; 
            color: #fff !important; 
            box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.15);
        }
        
        .nav-link-custom.active i {
             color: #fff !important; 
        }
 
        /* Culori custom pentru iconuri */
        .text-purple { color: #8e44ad !important; }
        .text-teal { color: #16a085 !important; }

        .card-glow-primary, .card-glow-success, .card-glow-warning, .card-glow-info {
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            border: 1px solid rgba(0,0,0,0.05) !important;
            background-color: #f8f9fa;
        }
        .card-glow-primary:hover {
            transform: translateY(-7px);
            box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2) !important;
            border-color: #007bff !important;
        }
        .card-glow-success:hover {
            transform: translateY(-7px);
            box-shadow: 0 10px 20px rgba(40, 167, 69, 0.2) !important;
            border-color: #28a745 !important;
        }
        .card-glow-warning:hover {
            transform: translateY(-7px);
            box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2) !important;
            border-color: #ffc107 !important;
        }
        .card-glow-info:hover {
            transform: translateY(-7px);
            box-shadow: 0 10px 20px rgba(13, 202, 240, 0.2) !important;
            border-color: #0dcaf0 !important;
        }
        
        .card-hover-light:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05) !important;
            transition: all 0.2s ease-in-out;
            background-color: #f0f0f0; 
        }

/* Index hramuri pe prima pagina */
.home-hramuri-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-left: 4px solid #2563eb;
    border-radius: 0.75rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}
.home-hramuri-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
}
.home-hramuri-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.home-hramuri-list {
    display: grid;
}
.home-hramuri-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    min-height: 68px;
    padding: 0.85rem 1.15rem;
    color: #0f172a;
    text-decoration: none;
    border-top: 1px solid #f1f5f9;
    transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.home-hramuri-item:first-child {
    border-top: none;
}
.home-hramuri-item:hover {
    background: #eef6ff;
    box-shadow: inset 3px 0 0 #2563eb;
    transform: translateX(2px);
}
.home-hramuri-day {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.65rem;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}
.home-hramuri-day small {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}
.home-hramuri-title {
    min-width: 0;
    font-weight: 700;
    line-height: 1.3;
}
.home-hramuri-count {
    white-space: nowrap;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .home-hramuri-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .home-hramuri-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }
    .home-hramuri-count {
        grid-column: 2;
        justify-self: flex-start;
    }
}

/* Mobil */

@media only screen and (max-width: 600px) {

.navig_agenda div.col-md-3:nth-child(1), .navig_agenda .col-md-6, .navig_agenda div.col-md-3:nth-child(3) {text-align:center!important;}


}

body {
margin:2%!important;
}

 #tbl-citate tbody tr.row-link:hover {
        background-color: #f5f5f5;   /* gri foarte deschis */
    }




/* CSS Personalizat pentru Login */

    .login-card {
        border: none;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0,0,0,0.2);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px); /* Efect de sticlă */
        overflow: hidden;
    }

    .card-header-custom {
        background: transparent;
        padding-bottom: 0;
        text-align: center;
    }

    .logo-img {
        width: 120px;
        height: auto;
        margin-bottom: 15px;
        transition: transform 0.3s ease;
    }

    .logo-img:hover {
        transform: scale(1.05);
    }

/* Stiluri pentru pagina Calendar ortodox anual */
.calendar-ortodox .ultimele-programari {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}
.calendar-ortodox .calendar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.calendar-ortodox .calendar-title-block {
    min-width: 220px;
}
.calendar-ortodox .calendar-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}
.calendar-ortodox h1 {
    color: #111827 !important;
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 0 !important;
}
.calendar-ortodox .calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
}
.calendar-ortodox .calendar-select-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
}
.calendar-ortodox .calendar-toolbar .form-select {
    background: #fff;
    border: 1px solid #d7dee8 !important;
    border-radius: 0.5rem;
    color: #0f172a;
    font-weight: 600;
    min-height: 42px;
    padding: 0.45rem 2rem 0.45rem 0.75rem;
}
.calendar-ortodox #calendar-month {
    width: 150px;
}
.calendar-ortodox #calendar-year {
    width: 105px;
}
.calendar-ortodox .calendar-nav-btn,
.calendar-ortodox .calendar-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.55rem;
    min-height: 44px;
    transition: all 0.18s ease;
}
.calendar-ortodox .calendar-nav-btn {
    width: 44px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #d7dee8;
}
.calendar-ortodox .calendar-nav-btn:hover {
    color: #0f172a;
    background: #eef2ff;
    border-color: #a5b4fc;
}
.calendar-ortodox .calendar-apply-btn {
    gap: 0.4rem;
    color: #ffffff;
    background: #2563eb;
    border: 1px solid #2563eb;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
}
.calendar-ortodox .calendar-apply-btn:hover {
    color: #ffffff;
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.22);
}
.calendar-ortodox .calendar-row {
    border-top: 1px solid #f3f4f6;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.calendar-ortodox .calendar-row:first-child {
    border-top: none;
}
.calendar-ortodox .calendar-date {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    display: flex;
}
.calendar-ortodox .calendar-row.sambata {
    background: #fff7f5;
}
.calendar-ortodox .calendar-row.curenta {
    background: #fffbeb;
}
.calendar-ortodox .calendar-row.duminica {
    border-top: 3px solid #dc2626;
}
.calendar-ortodox .calendar-row:hover {
    background: #f8fafc;
}
.calendar-ortodox .sfinti {
    margin-bottom: 0;
    color: #334155;
    line-height: 1.65;
    font-size: 0.95rem;
}
.calendar-ortodox .rosu {
    color: #c92a2a !important;
}
.calendar-ortodox .sfinti strong {
    color: #0f172a;
}

@media only screen and (max-width: 991px) {
    .calendar-ortodox .calendar-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .calendar-ortodox .calendar-toolbar {
        justify-content: flex-start;
        width: 100%;
    }
}

@media only screen and (max-width: 575px) {
    .calendar-ortodox .ultimele-programari {
        padding: 1rem;
    }
    .calendar-ortodox h1 {
        font-size: 1.65rem;
    }
    .calendar-ortodox .calendar-toolbar {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        gap: 0.5rem;
    }
    .calendar-ortodox .calendar-select-group {
        grid-column: 1 / -1;
        grid-row: 1;
        width: 100%;
    }
    .calendar-ortodox #calendar-month,
    .calendar-ortodox #calendar-year {
        flex: 1 1 0;
        width: auto;
    }
    .calendar-ortodox .calendar-nav-btn:first-of-type {
        grid-column: 1;
        grid-row: 2;
    }
    .calendar-ortodox .calendar-apply-btn {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
    }
    .calendar-ortodox .calendar-nav-btn:last-of-type {
        grid-column: 3;
        grid-row: 2;
    }
}

/* Pagina Hramuri */
.hramuri-page .hramuri-shell {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}
.hramuri-page .hramuri-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.hramuri-page .hramuri-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}
.hramuri-page h1 {
    color: #111827 !important;
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 0 !important;
}
.hramuri-page .hramuri-stats {
    margin-top: 1rem;
}
.hramuri-page .hramuri-stat {
    min-height: 86px;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
}
.hramuri-page .hramuri-stat span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.hramuri-page .hramuri-stat strong {
    color: #0f172a;
    font-size: 1.75rem;
    line-height: 1;
}
.hramuri-page .hramuri-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto auto;
    gap: 0.65rem;
    margin-top: 1rem;
}
.hramuri-page .hramuri-filters .form-control,
.hramuri-page .hramuri-filters .form-select,
.hramuri-page .hramuri-filters .input-group-text {
    min-height: 44px;
    border-color: #d7dee8 !important;
}
.hramuri-page .hramuri-table thead th {
    color: #475569;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hramuri-page .hramuri-table tbody tr {
    border-top: 1px solid #f1f5f9;
}
.hramuri-page .hramuri-table tbody tr:hover {
    background: #f8fafc;
}
.hramuri-page .hramuri-groups {
    display: grid;
    gap: 0.9rem;
}
.hramuri-page .hramuri-group {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
}
.hramuri-page .hramuri-group-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    cursor: pointer;
    list-style: none;
    transition: background 0.15s ease;
}
.hramuri-page .hramuri-group-header::-webkit-details-marker {
    display: none;
}
.hramuri-page .hramuri-group-header:hover {
    background: #eef6ff;
}
.hramuri-page .hramuri-summary-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.hramuri-page .hramuri-summary-icon {
    color: #64748b;
    font-size: 1rem;
    margin-top: 0.2rem;
    transition: transform 0.15s ease, color 0.15s ease;
}
.hramuri-page .hramuri-group[open] .hramuri-summary-icon {
    color: #2563eb;
    transform: rotate(180deg);
}
.hramuri-page .hramuri-group:not([open]) .hramuri-group-header {
    border-bottom: none;
}
.hramuri-page .hramuri-date {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.hramuri-page .hramuri-group h2 {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}
.hramuri-page .hramuri-group-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 180px;
}
.hramuri-page .hramuri-parish-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hramuri-page .hramuri-parish-list li {
    position: relative;
    cursor: pointer;
    padding: 0.8rem 1rem;
    border-left: 3px solid transparent;
    border-top: 1px solid #f1f5f9;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.hramuri-page .hramuri-parish-list li:first-child {
    border-top: none;
}
.hramuri-page .hramuri-parish-list li:hover {
    background: #eef6ff;
    border-left-color: #2563eb;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
    transform: translateX(2px);
}
.hramuri-page .hramuri-parish-list li:hover .fw-semibold {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media only screen and (max-width: 991px) {
    .hramuri-page .hramuri-header {
        flex-direction: column;
    }
    .hramuri-page .hramuri-filters {
        grid-template-columns: 1fr;
    }
    .hramuri-page .hramuri-group-header {
        flex-direction: column;
    }
    .hramuri-page .hramuri-group-meta {
        justify-content: flex-start;
        min-width: 0;
    }
}

@media only screen and (max-width: 575px) {
    .hramuri-page .hramuri-shell {
        padding: 1rem;
    }
    .hramuri-page h1 {
        font-size: 1.65rem;
    }
}

/* Pagina Aniversari Clerici */
.aniversari-page .aniversari-shell {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}
.aniversari-page .aniversari-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.aniversari-page .aniversari-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}
.aniversari-page h1 {
    color: #111827 !important;
    font-size: 2.05rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.15;
    margin-bottom: 0 !important;
}
.aniversari-page .aniversari-total {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.5rem 0.8rem;
}
.aniversari-page .aniversari-stats {
    margin-top: 1rem;
}
.aniversari-page .aniversari-stat {
    min-height: 86px;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
}
.aniversari-page .aniversari-stat span {
    display: block;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}
.aniversari-page .aniversari-stat strong {
    color: #0f172a;
    font-size: 1.75rem;
    line-height: 1;
}
.aniversari-page .aniversari-alert {
    border-radius: 0.65rem;
    border-width: 1px;
}
.aniversari-page .aniversari-table-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    overflow: hidden;
}
.aniversari-page .aniversari-table {
    margin-bottom: 0;
}
.aniversari-page .aniversari-table thead th {
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.aniversari-page .aniversari-table tbody td {
    border-color: #f1f5f9;
}
.aniversari-page .aniversari-table tbody tr {
    border-left: 3px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.aniversari-page .aniversari-table tbody tr:hover {
    background: #eef6ff;
    border-left-color: #2563eb;
    transform: translateX(2px);
}
.aniversari-page .aniversari-table tbody tr:hover .aniversari-name {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.aniversari-page .aniversari-row-today {
    background: #ecfdf3;
}
.aniversari-page .aniversari-row-tomorrow {
    background: #fffbeb;
}
.aniversari-page .aniversari-row-week {
    background: #eff6ff;
}
.aniversari-page .aniversari-row-month {
    background: #f8fbff;
}
.aniversari-page .aniversari-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 0.5rem;
}

@media only screen and (max-width: 991px) {
    .aniversari-page .aniversari-header {
        flex-direction: column;
    }
}

@media only screen and (max-width: 575px) {
    .aniversari-page .aniversari-shell {
        padding: 1rem;
    }
    .aniversari-page h1 {
        font-size: 1.65rem;
    }
}

    .form-control {
        border-radius: 10px;
        background-color: #f8f9fa;
        border: 1px solid #e1e1e1;
        padding: 12px 15px;
    }

    .form-control:focus {
        box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
        border-color: #764ba2;
    }

    .btn-custom {
        background: linear-gradient(to right, #667eea, #764ba2);
        border: none;
        border-radius: 10px;
        padding: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
    }

    .btn-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(118, 75, 162, 0.4);
        background: linear-gradient(to right, #5a6fd1, #683f91);
    }

    .system-title {
        color: #333;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .system-subtitle {
        color: #777;
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .alert-custom {
        border-radius: 10px;
        font-size: 0.9rem;
    }

/* === Landing Page: Selector login === */
.landing-page {
    font-family: 'Poppins', sans-serif;
}

.landing-page .landing-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0.25rem 0;
}

.landing-page .landing-divider::before,
.landing-page .landing-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.landing-page .landing-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: none;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-page .landing-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.landing-page .landing-btn-eparhie {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.landing-page .landing-btn-eparhie:hover {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.landing-page .landing-btn-portal {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

.landing-page .landing-btn-portal:hover {
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.45);
}

.landing-page .landing-btn-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.landing-page .landing-btn-label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.landing-page .landing-btn-desc {
    font-size: 0.78rem;
    opacity: 0.82;
    margin-top: 2px;
}

@media only screen and (max-width: 575px) {
    .landing-page .landing-btn {
        padding: 1rem;
    }
    .landing-page .landing-btn-icon {
        font-size: 1.6rem;
    }
}

/* === Modul: View record (Parohie / Non-cleric) === */
.view-record-page {
    color: #1f2937;
    font-size: 1.03rem;
}

.view-record-hero {
    background: #f5f9ff;
    border: 1px solid #dbeafe;
    border-left: 6px solid #2563eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
}

.view-record-title {
    color: #111827;
    font-size: clamp(2rem, 3vw, 2.65rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0;
}

.view-record-subtitle {
    align-items: center;
    color: #1d4ed8;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.13rem;
    font-weight: 700;
    gap: .45rem;
    margin-top: .45rem;
}

.view-parish-profile-photo {
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
    flex: 0 0 150px;
    overflow: hidden;
}

.view-parish-profile-photo img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.view-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}

.view-meta-pill {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e3f5;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-weight: 700;
    gap: .45rem;
    padding: .42rem .78rem;
}

.view-profile-card,
.view-section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.view-profile-card {
    margin-bottom: 1.25rem;
    padding: 1.2rem;
    overflow: hidden;
}

.view-photo-wrap {
    background: #eef6ff;
    padding: 1.15rem;
    text-align: center;
}

.view-photo {
    aspect-ratio: 4 / 5;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
    max-height: 275px;
    object-fit: cover;
    width: 100%;
}

.view-photo-placeholder {
    align-items: center;
    aspect-ratio: 4 / 5;
    background: #fff;
    border: 2px dashed #bfdbfe;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-height: 275px;
    width: 100%;
}

.view-profile-body {
    padding: 1.25rem;
}

.view-avatar {
    align-items: center;
    background: #e8f1ff;
    border-radius: 8px;
    color: #2563eb;
    display: flex;
    font-size: 3rem;
    height: 120px;
    justify-content: center;
    margin-bottom: 1rem;
    width: 120px;
}

.view-profile-name {
    color: #111827;
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.view-contact-line {
    align-items: center;
    color: #475569;
    display: flex;
    gap: .55rem;
    line-height: 1.35;
    margin-top: .65rem;
    word-break: break-word;
}

.view-section-card {
    margin-bottom: 1.25rem;
    padding: 1.15rem;
}

.view-section-title {
    align-items: center;
    color: #111827;
    display: flex;
    font-size: 1.2rem;
    font-weight: 700;
    gap: .7rem;
    margin-bottom: 1rem;
}

.view-icon-box {
    align-items: center;
    background: #e8f1ff;
    border-radius: 8px;
    color: #2563eb;
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.view-info-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 100%;
    padding: .85rem .9rem;
}

.view-info-label {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: .82rem;
    font-weight: 700;
    gap: .45rem;
    letter-spacing: .02em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.view-info-value {
    color: #111827;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

.view-bool-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 700;
    padding: .28rem .7rem;
}

.view-badge-yes {
    background: #dcfce7;
    color: #166534;
}

.view-badge-no {
    background: #f1f5f9;
    color: #475569;
}

.view-link,
.view-list-link {
    font-weight: 700;
    text-decoration: none;
}

.view-photo-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.view-photo-thumb {
    aspect-ratio: 4 / 3;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    object-fit: cover;
    width: 100%;
}

.view-photo-link {
    border-radius: 8px;
    display: block;
    overflow: hidden;
    position: relative;
}

.view-photo-link::after {
    background: rgba(15, 23, 42, .38);
    content: "";
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity .18s ease;
}

.view-photo-link:hover::after,
.view-photo-link:focus-visible::after {
    opacity: 1;
}

.photo-lightbox-modal .modal-content {
    background: rgba(8, 13, 23, .96);
    border: 0;
    color: #fff;
}

.photo-lightbox-close {
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    z-index: 1065;
}

.photo-lightbox-body {
    align-items: center;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: 1rem;
    min-height: 100vh;
    padding: 3.75rem 1.5rem 2rem;
}

.photo-lightbox-figure {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    min-height: 0;
}

.photo-lightbox-image {
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
    max-height: calc(100vh - 125px);
    max-width: 100%;
    object-fit: contain;
}

.photo-lightbox-caption {
    align-items: center;
    color: #e5e7eb;
    display: flex;
    font-size: .95rem;
    gap: .85rem;
    justify-content: center;
    min-height: 1.5rem;
}

.photo-lightbox-caption span:last-child {
    color: #cbd5e1;
    font-weight: 700;
}

.photo-lightbox-nav {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 2rem;
    height: 56px;
    justify-content: center;
    justify-self: center;
    width: 56px;
}

.photo-lightbox-nav:hover,
.photo-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, .2);
}

.profile-photo-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}

.profile-photo-option {
    cursor: pointer;
    display: block;
    margin: 0;
    position: relative;
}

.profile-photo-option input {
    opacity: 0;
    position: absolute;
}

.profile-photo-thumb-wrap,
.profile-photo-empty {
    align-items: center;
    background: #f8fafc;
    border: 3px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    height: 82px;
    justify-content: center;
    overflow: hidden;
    transition: border-color .18s ease, box-shadow .18s ease;
    width: 108px;
}

.profile-photo-thumb-wrap img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.profile-photo-empty {
    color: #64748b;
    flex-direction: column;
    font-size: .78rem;
    gap: .25rem;
    padding: .35rem;
    text-align: center;
}

.profile-photo-empty .bi {
    font-size: 1.35rem;
}

.profile-photo-option input:checked + .profile-photo-thumb-wrap,
.profile-photo-option input:checked + .profile-photo-empty {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.view-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: .9rem;
    text-transform: uppercase;
}

.view-table td {
    font-size: 1.02rem;
}

.view-table a {
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .view-record-page {
        font-size: 1rem;
    }

    .view-record-hero {
        padding: 1rem;
    }

    .view-record-title {
        font-size: 1.8rem;
    }

    .view-parish-profile-photo {
        flex-basis: 100%;
        max-width: 260px;
    }

    .photo-lightbox-body {
        grid-template-columns: 1fr;
        padding: 4rem 1rem 5.25rem;
    }

    .photo-lightbox-nav {
        bottom: 1.25rem;
        position: fixed;
        z-index: 1065;
    }

    .photo-lightbox-prev {
        left: 1.25rem;
    }

    .photo-lightbox-next {
        right: 1.25rem;
    }

    .photo-lightbox-image {
        max-height: calc(100vh - 150px);
    }
}

/* === Modul: View Cleric (view-cleric.php) === */
.view-cleric-page {
    color: #1f2937;
    font-size: 1.03rem;
}

.view-cleric-hero {
    background: #f5f9ff;
    border: 1px solid #dbeafe;
    border-left: 6px solid #2563eb;
    border-radius: 8px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
}

.view-cleric-title {
    color: #111827;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0;
}

.view-parish-line {
    align-items: center;
    color: #1d4ed8;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.13rem;
    font-weight: 700;
    gap: .45rem;
    margin-top: .45rem;
}

.view-subtitle {
    color: #4b5563;
    font-size: 1.08rem;
    margin-top: .35rem;
}

@media (max-width: 767.98px) {
    .view-cleric-page {
        font-size: 1rem;
    }

    .view-cleric-hero {
        padding: 1rem;
    }

    .view-cleric-title {
        font-size: 1.8rem;
    }
}

/* === Modul: Portal Clerici — Sidebar === */
/* Inputs / Selects portal */
::placeholder { color: #bbb !important; opacity: 1; }
:-ms-input-placeholder { color: #bbb !important; }
::-ms-input-placeholder { color: #bbb !important; }

select.form-select option {
    color: #212529;
}
select.form-select option[value=""] {
    color: #bbb;
}
select.form-select.select-empty {
    color: #bbb;
}
select.form-select.select-empty option:not([value=""]) {
    color: #212529;
}

/* Desktop sidebar — portal (sticky, full-height) */
.portal-layout .sidebar-container {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    padding: 1.25rem;
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    overflow-y: auto;
}

.sidebar-logo img {
    transition: transform .2s;
}
.sidebar-logo img:hover { transform: scale(1.05); }

/* Portal nav-link-custom — suprascriere față de admin */
.portal-layout .nav-link-custom {
    display: flex;
    align-items: center;
    color: #495057;
    border-radius: 9px;
    padding: .55rem .85rem;
    margin-bottom: 2px;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, color .15s, transform .1s;
    text-decoration: none;
}
.portal-layout .nav-link-custom i {
    font-size: 1rem;
    color: #6c757d;
    flex-shrink: 0;
    transition: color .15s;
}
.portal-layout .nav-link-custom:hover {
    background: #eef2ff;
    color: #0d6efd;
    transform: translateX(3px);
}
.portal-layout .nav-link-custom:hover i { color: #0d6efd; }
.portal-layout .nav-link-custom.active {
    background: linear-gradient(135deg, #0d6efd, #3a8bfd);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(13,110,253,.3);
}
.portal-layout .nav-link-custom.active i { color: #fff !important; }

.portal-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    padding: .55rem .9rem;
    margin-bottom: .75rem;
    gap: .5rem;
}

.portal-mobile-bar .user-label {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .83rem;
    font-weight: 600;
    color: #212529;
}

#sidebarOffcanvas .nav-link-custom {
    font-size: .9rem;
    padding: .6rem 1rem;
}

#sidebarOffcanvas .offcanvas-header {
    background: linear-gradient(135deg,#f8f9ff,#eef2ff);
}

/* === Modul: Citate Slider === */
.quote-shell { padding: 3rem 0; }

.brand-block { font-family: 'Playfair Display', serif; color: #3e3e3e; }
.brand-block .init { font-size: 60px; line-height: 0.8; color: #b63c2b; display: inline-block; }
.brand-block .tit { font-size: 38px; font-weight: 600; }
.brand-block .sub {
    font-size: 20px;
    font-style: italic;
    color: #777;
    border-top: 1px solid #ccc;
    padding-top: .5rem;
    margin-top: .5rem;
}

.carousel-item p { font-size: 26px; line-height: 1.45; margin-bottom: 1rem; }
.carousel-item .author { font-size: 20px; color: #b63c2b; text-align: left; font-weight: 600; }
.carousel-indicators { justify-content: flex-start; }
.carousel-indicators [data-bs-target] {
    width: 18px;
    height: 0px;
    border-radius: 50%;
    background: #bbb;
}
.carousel-indicators .active { background: #b63c2b; }

/* === Modul: Portal Admin — Acces Clerici === */
.access-credentials-table th,
.access-credentials-table td {
    vertical-align: middle;
}

.access-transmis-form,
.access-actions form {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    margin: 0;
}

.access-actions {
    align-items: center;
    display: inline-flex;
    gap: .2rem;
    justify-content: center;
}

.access-action-btn {
    align-items: center;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 28px;
}

.access-action-btn .bi {
    font-size: .85rem;
    line-height: 1;
}

/* === Modul: Dare de Seamă — Formular întrebări === */
.question-card {
    background: #f8fafc;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.question-card textarea {
    min-height: 70px;
}

.question-label {
    font-weight: 600;
    color: #1f2937;
}

.question-number {
    min-width: 52px;
    text-align: center;
    letter-spacing: 0.5px;
}

/* === Modul: Dare de Seamă — Vizualizare parohie (read-only) === */
.view-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 2px;
    display: block;
}

.view-value {
    font-size: 1rem;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.view-value-transparent {
    padding: 5px 0;
    background: transparent;
    border: none;
    font-size: 1.05rem;
}

/* === Print — Dare de Seamă === */
.print-area {
    background: #fff;
}

@media print {
    body {
        background: #fff !important;
        background-color: white;
    }
    .no-print,
    .sidebar,
    aside,
    nav {
        display: none !important;
    }
    .container {
        max-width: 210mm !important;
        padding: 0 !important;
    }
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .print-area {
        margin: 0 auto !important;
        padding: 0 !important;
    }
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    p, li {
        page-break-inside: avoid;
    }
    .card-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* === Modul: Rapoarte — Statistici === */
.stats-page {
    color: #1f2937;
}

.stats-page .stats-hero,
.stats-page .metric-tile,
.stats-page .coverage-strip,
.stats-page .report-card {
    border: 1px solid #dde4ef;
    border-radius: 8px;
    background: #fff;
}

.stats-page .stats-hero {
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.stats-page .stats-hero h1 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0;
}

.stats-page .stats-hero p,
.stats-page .metric-note,
.stats-page .coverage-label,
.stats-page .report-card p {
    color: #64748b;
}

.stats-page .stats-hero p {
    margin: .35rem 0 0;
}

.stats-page .metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.stats-page .metric-tile {
    padding: 1rem;
    min-height: 112px;
}

.stats-page .metric-label {
    color: #64748b;
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stats-page .metric-value {
    font-size: 1.85rem;
    font-weight: 750;
    line-height: 1.1;
    margin-top: .3rem;
}

.stats-page .metric-note {
    font-size: .88rem;
    margin-top: .35rem;
}

.stats-page .coverage-strip {
    padding: 1rem;
    margin-bottom: 1rem;
}

.stats-page .coverage-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.stats-page .coverage-label {
    font-size: .9rem;
    min-width: 170px;
}

.stats-page .coverage-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    width: 60px;
    text-align: right;
}

.stats-page .coverage-bar {
    height: 8px;
    border-radius: 999px;
    background: #e9eef6;
    overflow: hidden;
    flex: 1 1 auto;
}

.stats-page .coverage-fill {
    height: 100%;
    background: #2f855a;
}

.stats-page .report-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.stats-page .report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    min-height: 44px;
}

.stats-page .report-card-title {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.stats-page .report-card h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0;
}

.stats-page .report-card p {
    font-size: .86rem;
    margin: 0;
    text-align: right;
    max-width: 230px;
}

.stats-page .report-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2457a6;
    flex: 0 0 auto;
}

.stats-page .chart-shell {
    position: relative;
    min-height: 275px;
}

.stats-page .chart-shell canvas {
    width: 100% !important;
    height: 275px !important;
}

.stats-page .stat-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem .75rem;
    border-top: 1px solid #edf1f7;
    padding-top: .75rem;
}

.stats-page .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    min-width: 0;
}

.stats-page .stat-row span:first-child {
    color: #475569;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-page .stat-row strong {
    color: #111827;
    font-variant-numeric: tabular-nums;
}

@media only screen and (max-width: 991px) {
    .stats-page .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 575px) {
    .stats-page .metric-grid,
    .stats-page .stat-list {
        grid-template-columns: 1fr;
    }

    .stats-page .report-card-header,
    .stats-page .coverage-item {
        flex-direction: column;
    }

    .stats-page .report-card p {
        text-align: left;
        max-width: none;
    }

    .stats-page .coverage-item {
        align-items: flex-start;
        gap: .4rem;
    }

    .stats-page .coverage-label,
    .stats-page .coverage-value {
        width: auto;
        min-width: 0;
        text-align: left;
    }
}

/* === Modul: Circulare (admin + portal) === */

.circulare-page h1 {
    color: #0d6efd !important;
    margin-bottom: 22px !important;
}

/* Admin — vizualizare fișier */
.circulare-page .circ-viewer {
    margin-top: 1rem;
}

/* Portal — lista circulare */
.portal-circulare-page .portal-circ-list .list-group-item {
    transition: background-color 0.15s;
}

.portal-circulare-page .portal-circ-list .list-group-item:hover {
    background-color: #f0f6ff;
}

.portal-circulare-page .circ-necitita {
    background-color: #fffbf0;
    border-left: 4px solid #f59e0b !important;
}

.portal-circulare-page .circ-titlu {
    font-size: 1rem;
}

.portal-circulare-page .circ-icon {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
}

/* Portal — breadcrumb */
.portal-circulare-page .breadcrumb {
    font-size: 0.875rem;
}

@media only screen and (max-width: 991px) {
    .portal-circulare-page .circ-viewer iframe {
        height: 500px;
    }
}

@media only screen and (max-width: 575px) {
    .portal-circulare-page .circ-titlu {
        font-size: 0.9rem;
    }

    .circulare-page .circ-viewer iframe {
        height: 400px;
    }
}

/* === Modul: Kinonia === */
.kinonia-page h1 {
    color: #1f5f4a;
}

.kinonia-page .table td,
.kinonia-page .table th {
    vertical-align: middle;
}

.kinonia-page .badge {
    font-weight: 600;
}

.kinonia-page .select2-container .select2-selection--single {
    height: 38px;
    border-color: #dee2e6;
}

.kinonia-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
}

.kinonia-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

@media only screen and (max-width: 575px) {
    .kinonia-page .d-flex.gap-1,
    .kinonia-page .d-flex.gap-2 {
        flex-wrap: wrap;
    }
}

/* === Modul: Programe Eparhiale (Admin) === */
.programe-eparhiale-page h1 {
    color: #0d6efd;
}

.programe-eparhiale-page .pe-badge-patriarhie {
    background-color: #6f42c1;
    color: #fff;
}

.programe-eparhiale-page .pe-badge-mitropolie {
    background-color: #0dcaf0;
    color: #000;
}

.programe-eparhiale-page .pe-badge-eparhie {
    background-color: #0d6efd;
    color: #fff;
}

.programe-eparhiale-page .table td,
.programe-eparhiale-page .table th {
    vertical-align: middle;
}

.programe-eparhiale-page .pe-descriere-content {
    font-size: .95rem;
    line-height: 1.7;
}

.programe-eparhiale-page .pe-descriere-content img {
    max-width: 100%;
    height: auto;
}

.programe-eparhiale-page .pe-mesaj-full {
    background: #f8f9fa;
    border-left: 3px solid #0d6efd;
    border-radius: 4px;
    padding: .5rem .75rem;
    font-size: .9rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.programe-eparhiale-page .pe-msg-toggle {
    font-size: .78rem;
    text-decoration: none;
    line-height: 1.2;
}

.programe-eparhiale-page .pe-msg-toggle:hover {
    text-decoration: underline;
}

.programe-eparhiale-page .pe-doc-list a {
    min-width: 0;
    text-decoration: none;
}

.programe-eparhiale-page .pe-doc-selected:empty,
.programe-eparhiale-page .pe-doc-error:empty {
    display: none !important;
}

@media only screen and (max-width: 991px) {
    .programe-eparhiale-page h1 {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 575px) {
    .programe-eparhiale-page .d-flex.gap-2 {
        flex-wrap: wrap;
    }
}

/* === Portal: Programe Eparhiale === */
.portal-programe-page .program-card {
    border-radius: 12px;
    transition: transform .15s, box-shadow .15s;
    cursor: pointer;
}

.portal-programe-page .program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, .15) !important;
}

.portal-programe-page .bg-purple {
    background-color: #6f42c1 !important;
    color: #fff !important;
}

.portal-programe-page .pe-descriere-content {
    font-size: .95rem;
    line-height: 1.75;
}

.portal-programe-page .pe-descriere-content img {
    max-width: 100%;
    height: auto;
}

.portal-programe-page .border-start.border-success {
    border-left-width: 4px !important;
}

.portal-programe-page .pe-doc-list .pe-doc-name {
    min-width: 0;
    flex: 1 1 200px;
}

@media only screen and (max-width: 991px) {
    .portal-programe-page h1 {
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 575px) {
    .portal-programe-page .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    .portal-programe-page .btn {
        width: 100%;
        justify-content: center;
    }
}

/* === Modul: Statistici Accesări Portal === */
.statistici-acces-page .sa-hero {
    padding: 1rem 0 .5rem;
}

.statistici-acces-page .sa-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.statistici-acces-page .sa-subtitle {
    font-size: .9rem;
}

.statistici-acces-page .sa-period-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.statistici-acces-page .sa-period-btn {
    border: 1px solid #dde4ef;
    background: #fff;
    color: #475569;
    border-radius: 6px;
    font-size: .82rem;
    padding: .3rem .75rem;
}

.statistici-acces-page .sa-period-btn.active,
.statistici-acces-page .sa-period-btn:hover {
    background: #2457a6;
    color: #fff;
    border-color: #2457a6;
}

.statistici-acces-page .metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.statistici-acces-page .metric-tile {
    border: 1px solid #dde4ef;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    min-height: 100px;
}

.statistici-acces-page .metric-label {
    color: #64748b;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.statistici-acces-page .metric-value {
    font-size: 1.7rem;
    font-weight: 750;
    line-height: 1.15;
    margin-top: .25rem;
    font-variant-numeric: tabular-nums;
}

.statistici-acces-page .metric-note {
    font-size: .8rem;
    color: #64748b;
    margin-top: .2rem;
}

.statistici-acces-page .report-card {
    border: 1px solid #dde4ef;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
}

.statistici-acces-page .report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.statistici-acces-page .report-card-title {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.statistici-acces-page .report-card h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.statistici-acces-page .report-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2457a6;
    flex: 0 0 auto;
}

.statistici-acces-page .chart-shell {
    position: relative;
    min-height: 260px;
}

.statistici-acces-page .chart-shell canvas {
    width: 100% !important;
    height: 260px !important;
}

@media only screen and (max-width: 991px) {
    .statistici-acces-page .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 575px) {
    .statistici-acces-page .metric-grid {
        grid-template-columns: 1fr;
    }
    .statistici-acces-page .report-card-header {
        flex-direction: column;
    }
    .statistici-acces-page .sa-title {
        font-size: 1.2rem;
    }
}
/* === Modul: Activitati Parohiale === */
.activitati-page .ap-photo-grid,
.activitati-page .ap-gallery,
.activitati-page .ap-photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 120px));
    gap: .75rem;
}

.activitati-page .ap-photo-edit-item,
.activitati-page .ap-photo-preview-item {
    position: relative;
    padding: .3rem;
    border: 1px solid #dee2e6;
    border-radius: .6rem;
    background: #fff;
}

.activitati-page .ap-photo-edit-item img,
.activitati-page .ap-gallery img,
.activitati-page .ap-preview-thumb {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: .4rem;
}

.activitati-page .ap-photo-remove {
    position: absolute;
    top: -.55rem;
    right: -.55rem;
    z-index: 2;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.25rem;
    font-weight: 700;
    box-shadow: 0 .15rem .45rem rgba(0, 0, 0, .25);
}

.activitati-page .ap-photo-remove:hover {
    background: #b02a37;
}

.activitati-page .ap-gallery-trigger {
    display: block;
    width: 100%;
    padding: .35rem;
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}

.activitati-page .ap-gallery-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .1);
}

.ap-gallery-modal .modal-content {
    background: rgba(8, 12, 20, .97);
}

.ap-gallery-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 1rem 5rem 3rem;
}

.ap-gallery-modal .ap-gallery-main-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
}

.ap-gallery-modal .ap-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.6rem;
}

.ap-gallery-modal .ap-gallery-nav:hover {
    background: rgba(255, 255, 255, .3);
}

.ap-gallery-modal .ap-gallery-prev {
    left: 1rem;
}

.ap-gallery-modal .ap-gallery-next {
    right: 1rem;
}

.activitati-page .ap-current-file {
    padding: .75rem;
    border: 1px solid #dee2e6;
    border-radius: .65rem;
    background: #f8f9fa;
}

.activitati-page .ap-description {
    line-height: 1.7;
    white-space: normal;
}

.activitati-page .ap-video {
    width: 100%;
    max-height: 420px;
    border-radius: .65rem;
    background: #111;
}

.activitati-page .ap-evaluation-card {
    border-left: 4px solid #198754 !important;
}

.activitati-page .ap-evaluation-score {
    display: inline-flex;
    align-items: baseline;
    gap: .15rem;
    min-width: 88px;
    padding: .55rem .8rem;
    border-radius: .8rem;
    background: #e8f7ef;
    color: #146c43;
    justify-content: center;
}

.activitati-page .ap-evaluation-score strong {
    font-size: 1.8rem;
    line-height: 1;
}

.activitati-page .ap-evaluation-score span {
    font-weight: 700;
}

.activitati-page .ap-evaluation-comment {
    padding: .9rem 1rem;
    border: 1px solid #dbe7df;
    border-radius: .7rem;
    background: #f8fbf9;
    line-height: 1.65;
}

.activitati-page .ap-evaluation-comment-internal {
    border-color: #f1d7dc;
    background: #fff8f9;
}

@media (max-width: 575.98px) {
    .activitati-page .ap-photo-grid,
    .activitati-page .ap-gallery,
    .activitati-page .ap-photo-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .activitati-page .ap-photo-edit-item img,
    .activitati-page .ap-gallery img,
    .activitati-page .ap-preview-thumb {
        height: 82px;
    }

    .ap-gallery-modal .modal-body {
        padding: .5rem 3.5rem 1.5rem;
    }

    .ap-gallery-modal .ap-gallery-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
}
.portal-notifications-card {
    overflow: hidden;
}

.portal-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1rem;
}

.portal-notifications-list {
    border-top: 1px solid #eef1f5;
}

.portal-notification-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 130px;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.5rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #eef1f5;
    transition: background-color .15s ease;
}

.portal-notification-item:hover {
    background: #f8fbff;
}

.portal-notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e1e7ef;
    color: #0d6efd;
}

.portal-notification-main {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.portal-notification-badge {
    justify-self: start;
}

.portal-notification-title {
    color: #111827;
    font-weight: 700;
    line-height: 1.35;
}

.portal-notification-meta,
.portal-notification-date {
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.35;
}

.portal-notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
}

.portal-notification-time {
    color: #374151;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .portal-notifications-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-notification-item {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 1rem;
    }

    .portal-notification-time {
        grid-column: 2;
        text-align: left;
    }
}

/* === Modul: Portal Clerici — Login === */
.portal-login-page {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    min-height: 100vh;
}

.portal-login-page .login-card {
    border-top: 6px solid #dc2626;
}

.portal-login-page .portal-login-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.portal-login-page .system-title {
    color: #b91c1c;
}

.portal-login-page .form-control:focus {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
    border-color: #f97316;
}

.portal-login-page .form-check-input:checked {
    background-color: #dc2626;
    border-color: #dc2626;
}

.portal-login-page .btn-custom {
    background: linear-gradient(to right, #dc2626, #f97316);
}

.portal-login-page .btn-custom:hover {
    background: linear-gradient(to right, #b91c1c, #ea580c);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}
