/* ========== Noto Sans Font Face Definitions ========== */
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-100.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-100.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 100;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-100italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-100italic.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-200.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-200.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 200;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-200italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-200italic.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-300.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-300.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-300italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-300italic.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-regular.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-500.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-500.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-500italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-500italic.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-600.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-600.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-600italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-600italic.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-700.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-700.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-700italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-700italic.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-800.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-800.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 800;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-800italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-800italic.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-900.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-900.woff') format('woff');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: italic;
    font-weight: 900;
    src: url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-900italic.woff2') format('woff2'),
         url('../fonts/noto-sans/noto-sans-v39-greek_greek-ext_latin-900italic.woff') format('woff');
}



/* ========== Full Height Layout ========== */
html, body {
    height: 100%;
	/*font-family: 'Noto Sans', sans-serif;*/
}

.auth-wrapper {
    height: 100%;
}

.auth-card {
    max-width: 800px;
}

.logo {
    max-height: 80px;
}

.card-header-add {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.25rem;
  border-bottom: none;
  color: #fff;
  background-color: #198754; /* Bootstrap success */
  border-color: #198754;
  text-align: right;
}

.card-header-edit {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.25rem;
  border-bottom: none;
  color: #fff;
  background-color: #0d6efd; /* Bootstrap primary */
  border-color: #0d6efd;
  text-align: right;
}

.card-header-delete {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.25rem;
  border-bottom: none;
  color: #fff;
  background-color: #dc3545; /* Bootstrap danger */
  border-color: #dc3545;
  text-align: right;
}

/* ========== Section Title Styles ========== */
.section-title-green,
.section-title-blue,
.section-title-red,
.section-title-muted {
  text-transform: uppercase;
  font-variant: small-caps;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Noto Sans';
  padding-bottom: 0.4rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/* First-letter emphasis */
.section-title-green::first-letter,
.section-title-blue::first-letter,
.section-title-red::first-letter,
.section-title-muted::first-letter {
  font-size: 1rem;
}

/* Specific border colors */
.section-title-green { border-bottom: 1px solid #198754; }   /* Bootstrap success */
.section-title-blue  { border-bottom: 1px solid #0d6efd; }   /* Bootstrap primary */
.section-title-red   { border-bottom: 1px solid #dc3545; }   /* Bootstrap danger */
.section-title-muted { border-bottom: 1px solid #ced4da; }   /* Light gray */


/* ========== Form Input Styles ========== */
.form-label-muted {
  text-transform: uppercase;
  font-variant: small-caps;
  font-size: 0.75rem;
  font-family: 'Noto Sans', sans-serif;
  color: #495057; /* Subtle muted gray */
  padding-left: 0.25rem;
  margin-bottom: 0.2rem;
  display: inline-block;
}

.form-control-smooth {
  border: 1px solid #ced4da;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  background-color: #fcfcfd;
  transition: all 0.2s ease-in-out;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Add Form: Green */
.form-control-smooth-add {
  color: #198754; /* Bootstrap success */
}
.form-control-smooth-add:focus {
  border-color: #86b7fe;
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(25, 135, 84, 0.25);
  background-color: #fff;
}

/* Edit Form: Blue */
.form-control-smooth-edit {
  color: #0d6efd; /* Bootstrap primary */
}
.form-control-smooth-edit:focus {
  border-color: #86b7fe;
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
  background-color: #fff;
}

/* Delete Form: Red */
.form-control-smooth-delete {
  color: #dc3545; /* Bootstrap danger */
}
.form-control-smooth-delete:focus {
  border-color: #86b7fe;
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.25);
  background-color: #fff;
}


/* ========== Desktop Sidebar ========== */
#sidebar-wrapper {
    background-color: #fdfdfe;
    border-right: 1px solid #dee2e6;
    min-width: 260px;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

#sidebar-wrapper .list-group-item,
#mobile-sidebar .list-group-item {
    background-color: #fdfdfe;
    color: #212529;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px solid #e3e3e3;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease-in-out;
}

#sidebar-wrapper .list-group-item:hover,
#mobile-sidebar .list-group-item:hover {
    background-color: transparent !important;
}

#sidebar-wrapper .list-group-item.active,
#mobile-sidebar .list-group-item.active {
    background-color: #f8f9fa !important;
    font-weight: 600;
    color: #000;
}

#sidebar-wrapper .list-group-item i,
#mobile-sidebar .list-group-item i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    vertical-align: middle;
}

#sidebar-wrapper .list-group-item[data-bs-toggle="collapse"],
#mobile-sidebar .list-group-item[data-bs-toggle="collapse"] {
    background-color: #f0f2f4;
    font-weight: 500;
}

#sidebar-wrapper .collapse .list-group-item,
#mobile-sidebar .collapse .list-group-item {
    padding-left: 1.1rem;
    font-size: 0.9rem;
    background-color: #f9f9f9;
    border-left: 3px solid #dee2e6;
}

/* Chevron animation */
.rotate-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

a[aria-expanded="true"] .rotate-icon {
    transform: rotate(180deg);
}

.sidebar-divider {
    height: 1px;
    background-color: #dcdcdc;
    margin: 0.5rem 1rem;
}

/* ========== Layout ========== */
#wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}

#page-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: #6c757d;
}

/* ========== Mobile Sidebar ========== */
#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 260px;
    background-color: #fdfdfe;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1045;
    display: flex;
    flex-direction: column;
}

#mobile-sidebar.open {
    left: 0;
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #dfe3e6;
    border-bottom: 1px solid #ccc;
}

@media (max-width: 767.98px) {
    #mobile-sidebar .mobile-sidebar-header img {
        max-height: 30px !important;
    }
}

#close-mobile-menu {
    color: #000 !important;
    background: transparent !important;
    border: none !important;
    font-size: 1rem !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1 !important;
}

.mobile-sidebar-content {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1rem 0;
}

/* ========== Responsive Visibility ========== */
#sidebar-wrapper {
    display: none;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        display: block;
        margin-left: 0;
    }

    #mobile-sidebar,
    #mobile-menu-overlay,
    #mobile-menu-toggle {
        display: none !important;
    }
}

/* ========== Typography Adjustments ========== */
@media (max-width: 767.98px) {
    body {
        font-size: 0.95rem;
    }

    #mobile-sidebar .list-group-item {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    #mobile-sidebar .list-group-item i {
        font-size: 1.2rem;
        margin-right: 0.65rem;
    }

    .mobile-sidebar-header {
        font-size: 1rem;
    }

    .form-control,
    .form-select,
    .btn {
        font-size: 0.95rem;
        min-height: 40px;
    }

    .form-select-sm {
        min-width: 70px;
    }
	
  .mb-mobile-3 {
	margin-bottom: 1rem !important;
  }
  
    #photoPreview {
    height: auto !important;
    max-height: 300px;
    width: 100% !important;
    /*object-fit: contain !important;*/
  }
}

/* ========== Consolidated Mobile Card View for Members Table ========== */
@media (max-width: 767.98px) {
    /* Hide table header */
    #membersTable thead {
        display: none;
    }

    /* Prevent centering issues from flex parent */
    .dt-layout-full.d-md-flex {
        display: block !important;
        text-align: unset !important;
    }

    /* Fix width and layout */
    #membersTable {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    #membersTable tbody {
        width: 100%;
    }

    #membersTable col {
        width: auto !important;
    }

    /* Mobile card layout */
    #membersTable tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.25rem;
        padding: 0.75rem;
        background-color: #fff;
    }

    #membersTable tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid #f1f1f1;
        font-size: 0.80rem;
    }

    #membersTable tbody td:last-child {
        border-bottom: none;
        flex-wrap: wrap;
        gap: 0.3rem;
        justify-content: flex-end;
    }

    #membersTable tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        flex: 1 1 40%;
        text-align: left;
    }

    #membersTable tbody td > *:not([data-label]) {
        flex: 1 1 60%;
        text-align: right;
    }

    /* Compact and styled icon-only buttons */
    #membersTable tbody td .btn {
        width: 34px;
        height: 34px;
		min-height: 34px;
        padding: 0;
        font-size: 1rem;
        line-height: 1;
        margin: 0 !important;
        flex: 0 0 auto;
        border-radius: 50%;
        border: 2px solid transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease-in-out;
    }

    #membersTable .btn .btn-text {
        display: none !important;
    }

    #membersTable .btn i {
        font-size: 1rem;
    }

    #membersTable .btn:hover {
        opacity: 0.95;
    }

    #membersTable .btn.btn-danger {
        background-color: #fff0f0;
        color: #dc3545;
        border-color: #f5c2c7;
    }

    #membersTable .btn.btn-danger:hover {
        background-color: #f8d7da;
        color: #a71d2a;
        border-color: #e4a1a7;
    }

    #membersTable .btn.btn-primary {
        background-color: #e7f1ff;
        color: #0d6efd;
        border-color: #b6d4fe;
    }

    #membersTable .btn.btn-primary:hover {
        background-color: #d0e5ff;
        color: #084298;
        border-color: #8bb9f5;
    }

    /* DataTables layout fixes */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        margin-top: 0.25rem;
    }

    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
        border-radius: 0.2rem;
        min-width: 32px;
        border: 1px solid #dee2e6;
        background-color: #f8f9fa;
        color: #333;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #e2e6ea;
        border-color: #ccc;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current {
        background-color: #0d6efd;
        color: #fff !important;
        border-color: #0d6efd;
    }

    .dataTables_wrapper .dataTables_info {
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.85rem;
    }
}

/* ========== Validation Error Styling ========== */
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #dc3545 !important;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M8.982 1.566a1.13 1.13 0 0 0-1.964 0L.165 13.233c-.457.778.091 1.767.982 1.767h13.707c.89 0 1.438-.99.982-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1-2.002 0 1 1 0 0 1 2.002 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding-left: 0.25rem;
}


/* ========== Live surname search ========== */

#surnameSuggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

#surnameSuggestions li {
    padding: 8px 12px;
    cursor: pointer;
}

#surnameSuggestions li:hover {
    background-color: #f0f0f0;
}

#programSuggestions ul {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

#programSuggestions li {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

#programSuggestions li:hover {
    background-color: #f8f9fa;
}

#memberSuggestions ul {
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0.25rem;
}

#memberSuggestions li:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* ========== Surname Suggestion Box Wrapper Fix (for payments) ========== */
#surnameSuggestions {
    position: relative; /* ensure width 100% on ul applies correctly */
    width: 100%;
}

#surnameSuggestions ul {
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
	border-radius: 0.25rem;
}