/* =========================
   GLOBAL APP HEADER SYSTEM
   ========================= */

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e6e9ee;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.app-topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.app-logo {
    height: 42px;
    width: auto;
    display: block;
    flex: 0 0 auto;
}

.app-brand-divider {
    width: 1px;
    height: 42px;
    background: #d6dbe3;
    flex: 0 0 auto;
}

.app-brand-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

.app-home-link {
    font-size: 15px;
    font-weight: 600;
    color: #115696;
    text-decoration: none;
    margin-bottom: 3px;
    width: fit-content;
}

.app-home-link:hover {
    color: #0d4475;
    text-decoration: underline;
}

.app-service-title {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: nowrap;
}

.app-nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #5b6472;
    text-decoration: none;
    white-space: nowrap;
}

.app-nav-link:hover {
    color: #111827;
    text-decoration: none;
}

.app-logout {
    margin: 0 0 0 auto;
    flex: 0 0 auto;
}

.page-content {
    padding-top: 28px;
    padding-bottom: 40px;
}

/* =========================
   TOP INFO BAR
   ========================= */

.top-info-bar {
    background: linear-gradient(90deg, #115696, #1b6fc1);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
}

.top-info-bar-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.top-info-left,
.top-info-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.top-info-item {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-info-item:hover {
    color: #ffffff;
    text-decoration: underline;
}

.top-social-link {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.top-social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

/* =========================
   EVENT CARDS
   ========================= */

.events-page-title {
    margin-bottom: 24px;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.event-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.event-card-image-wrap {
    display: block;
    background: #f3f4f6;
    overflow: hidden;
}

.event-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.event-card-body {
    padding: 20px;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #6b7280;
}

.event-meta-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
}

.event-card-title {
    font-size: 21px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    line-height: 1.3;
}

.event-card-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.event-card-actions {
    display: flex;
    justify-content: flex-start;
}

.event-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 10px;
    background: #f5f5f5;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d6dbe3;
    transition: all 0.2s ease;
}

.event-btn:hover {
    background: #e9e9e9;
    color: #111827;
    text-decoration: none;
}

.events-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    color: #6b7280;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* =========================
   EVENT DETAILS PAGE
   ========================= */

.event-details-hero {
    margin-bottom: 28px;
}

.event-details-cover {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.event-details-title {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.event-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.event-details-meta-item {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
}

.event-details-content {
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
    margin-bottom: 30px;
}

.event-gallery-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.event-gallery-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    border: 1px solid #e5e7eb;
}

.event-gallery-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* =========================
   ADMIN TABLE / FORMS
   ========================= */

.admin-page-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 22px;
}

.admin-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    background: #f8fafc;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    vertical-align: middle;
}

.status-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-published {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.status-unpublished {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-btn-primary,
.admin-btn-warning,
.admin-btn-danger,
.admin-btn-info,
.admin-btn-secondary {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
}

.admin-btn-primary {
    background: #115696;
    color: #fff;
}

.admin-btn-warning {
    background: #f59e0b;
    color: #fff;
}

.admin-btn-danger {
    background: #dc2626;
    color: #fff;
}

.admin-btn-info {
    background: #0891b2;
    color: #fff;
}

.admin-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.admin-btn-primary:hover,
.admin-btn-warning:hover,
.admin-btn-danger:hover,
.admin-btn-info:hover,
.admin-btn-secondary:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.admin-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    padding: 26px;
}

.admin-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 22px;
}

.existing-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.existing-photo-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* =========================
   FILTER BUTTON IMAGE BUTTONS
   ========================= */

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-img {
    display: inline-block;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    line-height: 0;
    text-decoration: none !important;
    cursor: pointer;
}

button.btn-img,
a.btn-img {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

button.btn-img:focus,
button.btn-img:focus-visible,
button.btn-img:active,
a.btn-img:focus,
a.btn-img:focus-visible,
a.btn-img:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.btn-img,
.btn-img * {
    outline: none !important;
}

.btn-img img {
    display: block;
    height: 40px;
    width: auto;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-img img:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* =========================
   FILTER FOOTER ROW
   ========================= */

.filters-bottom-row {
    margin-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
}

.view-switch-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-wrap: wrap;
}

.view-switch-label {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    white-space: nowrap;
}

/* =========================
   VIEW SWITCH
   ========================= */

.view-switch {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #f5f5f5;
    color: #1f2937;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.18s ease;
}

.view-btn:hover {
    background: #ebebeb;
}

.view-btn.active {
    background: #115696;
    color: #fff;
    border-color: #115696;
}

/* =========================
   GRID VIEW
   ========================= */

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* =========================
   LIST VIEW
   ========================= */

.event-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event-list-item {
    display: grid;
    grid-template-columns: 220px 1fr 140px;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.event-list-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    background: #f3f4f6;
}

.event-list-content {
    min-width: 0;
}

.event-list-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin-bottom: 10px;
}

.event-list-content .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
    font-size: 14px;
    color: #6b7280;
}

.event-list-content .event-meta span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
}

.event-list-item .event-btn {
    justify-self: end;
    white-space: nowrap;
}

/* =========================
   FEATURED HORIZONTAL BANNER
   ========================= */

.featured-banner-section {
    margin-bottom: 36px;
}

.featured-banner-shell {
    position: relative;
    padding: 0 44px;
}

.featured-banner-wrapper {
    overflow: hidden;
}

.featured-banner-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.featured-banner-track::-webkit-scrollbar {
    display: none;
}

.featured-banner-card {
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.featured-banner-image-wrap {
    display: block;
}

.featured-banner-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.featured-banner-body {
    padding: 14px;
}

.featured-banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 10px;
}

.featured-banner-meta span {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 4px 8px;
}

.featured-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 48px;
}

.featured-banner-actions {
    display: flex;
    justify-content: flex-start;
}

.featured-side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #115696;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    z-index: 5;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.featured-side-arrow:hover {
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    opacity: 0.96;
}

.featured-side-arrow-left {
    left: -6px;
}

.featured-side-arrow-right {
    right: -6px;
}

/* =========================
   EVENTS FILTER PANEL
   ========================= */

.events-filters-panel {
    /*background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);*/
	background: #d0e5f9;
    border: 1px solid #d9e6ff;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.events-filters-panel .form-label,
.events-filters-panel label {
    font-size: 14px;
    font-weight: 700;
    color: #1f3b6d;
    margin-bottom: 8px;
}

.events-filters-panel .form-control,
.events-filters-panel .form-select {
    border-radius: 12px;
    border: 1px solid #cfdcf4;
    background: #ffffff;
    min-height: 46px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.events-filters-panel .form-control:focus,
.events-filters-panel .form-select:focus {
    border-color: #7aa7ff;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.events-filters-panel .filters-bottom-row {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(37, 99, 235, 0.10);
}

.events-filters-panel .view-switch-label {
    color: #35507c;
    font-weight: 600;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1200px) {
    .app-topbar-inner {
        gap: 18px;
    }

    .app-nav {
        gap: 18px;
    }

    .app-service-title {
        font-size: 15px;
    }

    .app-nav-link {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .app-topbar-inner {
        min-height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .app-brand {
        width: 100%;
    }

    .app-nav {
        width: 100%;
        gap: 16px;
        flex-wrap: wrap;
    }

    .app-logout {
        margin-left: 0;
    }

    .app-service-title {
        white-space: normal;
    }

    .top-info-bar-inner {
        padding-top: 8px;
        padding-bottom: 8px;
        min-height: auto;
    }

    .top-info-left,
    .top-info-right {
        width: 100%;
        justify-content: center;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-gallery-grid,
    .existing-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-list-item {
        grid-template-columns: 180px 1fr;
    }

    .event-list-item .event-btn {
        justify-self: start;
        grid-column: 1 / -1;
    }

    .event-list-img {
        height: 120px;
    }

    .event-list-title {
        font-size: 21px;
    }

    .event-details-title {
        font-size: 30px;
    }

    .events-page-title,
    .admin-page-title,
    .admin-section-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .filters-bottom-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-switch-inline {
        margin-left: 0;
    }

    .featured-banner-shell {
        padding: 0 28px;
    }

    .featured-banner-card {
        min-width: 240px;
        max-width: 240px;
        flex: 0 0 240px;
    }

    .featured-banner-image {
        height: 150px;
    }

    .featured-banner-title {
        font-size: 16px;
        min-height: 44px;
    }

    .featured-side-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .featured-side-arrow-left {
        left: -2px;
    }

    .featured-side-arrow-right {
        right: -2px;
    }
}

@media (max-width: 640px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-gallery-grid,
    .existing-photo-grid {
        grid-template-columns: 1fr;
    }

    .event-card-image,
    .event-gallery-image {
        height: 220px;
    }

    .event-list-item {
        grid-template-columns: 1fr;
    }

    .event-list-img {
        height: 220px;
    }

    .event-list-item .event-btn {
        grid-column: auto;
        justify-self: start;
    }

    .event-details-title {
        font-size: 26px;
    }

    .events-page-title,
    .admin-page-title,
    .admin-section-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .top-info-left {
        gap: 10px;
    }

    .top-social-link {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}


/* =========================
   CSS ώστε οι πίνακες να κάθονται σωστά
   ========================= */


.event-details-content p {
    margin-top: 0;
    margin-bottom: 12px;
}

.event-details-content table {
    margin-top: 16px !important;
    margin-bottom: 20px !important;
}

.event-details-content h1,
.event-details-content h2,
.event-details-content h3,
.event-details-content h4,
.event-details-content h5,
.event-details-content h6 {
    margin-top: 18px;
    margin-bottom: 12px;
}

.event-details-content br + br {
    display: none;
}