* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Tahoma", "Arial", 'Noto Sans Arabic', sans-serif;
    direction: rtl;
    background-color: #f2e7d9;
    color: #222;
    line-height: 1.7;
}

/* Shared Header / Navigation */
.navbar,
.navigationbar {
    background-color: #7f996c;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.title,
.logo {
    font-size: 25px;
    font-weight: bold;
}

.navigationbar a,
.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
    font-size: 15px;
    transition: 0.3s;
}

.navigationbar a:hover,
.nav-links a:hover {
    background-color: #b3b58b;
    opacity: 0.9;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nightmodebutton,
.theme-btn {
    background-color: white;
    color: #1f5d3a;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.nightmodebutton:hover,
.theme-btn:hover {
    background-color: #f2e7d9;
}

/* Homepage - Hero Slider */
.hero {
    position: relative;
    max-width: 1300px;
    height: 540px;
    margin: 30px auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
}

.hero-text {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 7%;
    transform: translateY(-50%);
    max-width: 520px;
    color: white;
    text-align: right;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 18px;
    line-height: 1.4;
}

.hero-text p {
    font-size: 21px;
    line-height: 2;
    margin-bottom: 22px;
}

.btn {
    display: inline-block;
    background-color: #165c41;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #114630;
}

/* Homepage - Cards Section */
.cards-section {
    background-color: white;
    max-width: 1300px;
    margin: 35px auto;
    padding: 35px 25px 45px;
    border-radius: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.cards-section h2 {
    font-size: 34px;
    color: #165c41;
    margin: 0;
}

.view-all {
    text-decoration: none;
    color: #165c41;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

.view-all:hover {
    opacity: 0.8;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}

.cards-section .card {
    background-color: #f9fafb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.cards-section .card:hover {
    transform: translateY(-6px);
}

.cards-section .card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 18px;
}

.badge {
    display: inline-block;
    background-color: #dfeee8;
    color: #165c41;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    margin-bottom: 14px;
}

.cards-section .card h3 {
    font-size: 22px;
    color: #153e2f;
    margin-bottom: 10px;
}

.cards-section .card p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}


/* Gallery Page - Header, Filter, Cards */

.mainimage {
    height: 450px;
    background: url("images/mainimage.png") center/cover no-repeat;
    position: relative;
}

.aboveimage {
    background: rgba(0, 0, 0, 0.4);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.aboveimage h1 {
    font-size: 70px;
    color: white;
    margin-bottom: 10px;
}

.galleryheader {
    text-align: center;
    padding: 35px 20px 20px;
}

.galleryheader h2 {
    color: #1f5d3a;
    font-size: 34px;
    margin-bottom: 8px;
}

.galleryheader p {
    margin: 10px auto 18px;
    max-width: 850px;
    color: #4b3b2b;
    font-size: 17px;
}

.filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter label {
    color: #1f5d3a;
    font-weight: bold;
}

.filter select {
    background-color: white;
    color: #1f5d3a;
    border: 1px solid #7f996c;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.regionsGrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 90%;
    max-width: 1200px;
    margin: 25px auto 40px;
}

.regioncard {
    height: 280px;
    perspective: 1000px;
}


.regioncard .card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.regioncard:hover .card {
    transform: rotateY(180deg);
}

.regioncard .card-front,
.regioncard .card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.14);
}

.regioncard .card-front {
    background-color: #fff8ef;
}

.regioncard .card-front img {
    width: 100%;
    height: 220px;
    border-radius: 14px 14px 0 0;
    object-fit: cover;
    display: block;
}

.regioncard .card-front h3 {
    text-align: center;
    padding: 12px;
    color: #1f5d3a;
    font-size: 23px;
}

.regioncard .card-back {
    background-color: #1f5d3a;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 22px;
    text-align: center;
}

.regioncard .card-back p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.button {
    background-color: white;
    color: #1f5d3a;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
    transition: 0.3s;
}

.button:hover {
    background-color: #f2e7d9;
}

/* Admin Update Page */
.admin-page-body {
    background-color: #eef2f4;
    color: #1f2937;
}

.admin-main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px 40px;
}

.admin-title {
    text-align: center;
    color: #145c40;
    font-size: 32px;
    margin-bottom: 8px;
}

.admin-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 15px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 22px;
    align-items: start;
}

.preview-panel,
.form-panel {
    background-color: #ffffff;
    color: #1f2937;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 22px;
}

.panel-title {
    font-size: 22px;
    color: #145c40;
    margin-bottom: 18px;
}

.current-item {
    margin-bottom: 20px;
}

.current-item h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 4px;
}

.small-label {
    color: #6b7280;
    font-size: 13px;
}

.preview-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.delete-btn,
.preview-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.delete-btn {
    background-color: #dc2626;
    color: white;
}

.preview-btn {
    background-color: #145c40;
    color: white;
}

.preview-images h3 {
    font-size: 18px;
    color: #145c40;
    margin-bottom: 4px;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.thumb-grid img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 10px;
}

.update-form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 14px;
    font-weight: bold;
    color: #1f2937;
    font-size: 15px;
}

.update-form input,
.update-form textarea,
.update-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    background-color: #f9fafb;
    color: #1f2937;
}

.update-form textarea {
    resize: vertical;
}

.save-btn {
    width: 100%;
    margin-top: 22px;
    background-color: #145c40;
    color: white;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
}

.save-btn:hover {
    background-color: #104b34;
}

.success-message {
    max-width: 1100px;
    margin: 0 auto 18px;
    background-color: #d1fae5;
    color: #065f46;
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: #7f996c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    margin-top: 50px;
}

.footer p {
    font-size: 16px;
}

.totopbutton {
    background-color: white;
    color: #1f5d3a;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.totopbutton:hover {
    background-color: #f2e7d9;
    transform: translateY(-2px);
}


/* Dark Mode - General Pages */

body.dark-mode {
    background-color: #0b1320 !important;
    color: #f3f4f6 !important;

    --soft-bg: #0b1320;
    --card-bg: #111827;
    --text-dark: #f3f4f6;
    --muted-text: #d1d5db;
}

body.dark-mode .navbar,
body.dark-mode .navigationbar,
body.dark-mode .footer {
    background-color: #0b3d2a;
}

body.dark-mode .nightmodebutton,
body.dark-mode .theme-btn,
body.dark-mode .filter select,
body.dark-mode .totopbutton {
    background-color: #1f2937;
    color: #f9fafb;
}

body.dark-mode .galleryheader {
    background-color: #0b1320;
    color: #f3f4f6;
}

body.dark-mode .galleryheader h2,
body.dark-mode .galleryheader p,
body.dark-mode .filter label,
body.dark-mode .aboveimage h1 {
    color: #f3f4f6;
}

body.dark-mode .cards-section,
body.dark-mode .regioncard .card-front,
body.dark-mode .preview-panel,
body.dark-mode .form-panel {
    background-color: #111827;
    color: #f3f4f6;
}

body.dark-mode .cards-section .card {
    background-color: #1f2937;
}

body.dark-mode .cards-section h2,
body.dark-mode .cards-section .card h3,
body.dark-mode .view-all,
body.dark-mode .panel-title,
body.dark-mode .preview-images h3,
body.dark-mode .regioncard .card-front h3 {
    color: #86efac;
}

body.dark-mode .cards-section .card p,
body.dark-mode .admin-subtitle,
body.dark-mode .small-label {
    color: #d1d5db;
}

body.dark-mode .badge {
    background-color: #244135;
    color: #a7f3d0;
}

body.dark-mode .regioncard .card-back {
    background-color: #0b3d2a;
    color: white;
}

body.dark-mode .button,
body.dark-mode .btn,
body.dark-mode .preview-btn,
body.dark-mode .save-btn {
    background-color: #176b4c;
    color: white;
}

body.dark-mode .button:hover,
body.dark-mode .btn:hover,
body.dark-mode .preview-btn:hover,
body.dark-mode .save-btn:hover {
    background-color: #0b3d2a;
}

body.dark-mode.admin-page-body {
    background-color: #0b1320;
    color: #f3f4f6;
}

body.dark-mode .current-item h3,
body.dark-mode .update-form label {
    color: #f3f4f6;
}

body.dark-mode .update-form input,
body.dark-mode .update-form textarea,
body.dark-mode .update-form select {
    background-color: #1f2937;
    color: white;
    border: 1px solid #374151;
}

body.dark-mode .success-message {
    background-color: #064e3b;
    color: #d1fae5;
}

body.dark-mode .loginPage section {
    background-color: #1e1e1e;
    color: white;
}

body.dark-mode .loginPage h1,
body.dark-mode .loginPage label {
    color: #d8f3dc;
}

body.dark-mode .loginPage input {
    background-color: #1f2937;
    color: #f9fafb;
    border: 1px solid #555;
}

body.dark-mode .loginPage .loginbutton {
    background-color: #16a34a;
    color: white;
}

/* Responsive Design - General */
@media (max-width: 900px) {
    .hero {
        height: 480px;
        margin: 20px 15px 0;
    }

    .hero-text {
        right: 6%;
        left: 6%;
        max-width: unset;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .aboveimage h1 {
        font-size: 46px;
    }

    .regionsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .navbar,
    .navigationbar {
        padding: 16px 18px;
        justify-content: center;
    }

    .nav-links {
        gap: 14px;
    }

    .hero {
        height: 420px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.8;
    }

    .cards-section {
        margin: 20px 15px;
        padding: 25px 18px 35px;
    }

    .cards-section h2 {
        font-size: 28px;
    }

    .view-all {
        font-size: 16px;
    }

    .cards-section .card p {
        font-size: 15px;
    }

    .mainimage {
        height: 330px;
    }

    .aboveimage h1 {
        font-size: 34px;
    }

    .galleryheader h2 {
        font-size: 28px;
    }

    .regionsGrid {
        grid-template-columns: 1fr;
        width: 92%;
    }

    .regioncard {
        height: 270px;
    }
}


/* Theme Variables and Second Style Block */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --main-green: #155f43;
    --dark-green: #0f4d36;
    --button-green: #176b4c;
    --soft-bg: #f5f7f8;
    --card-bg: #ffffff;
    --text-dark: #1f2a24;
    --muted-text: #4b5563;
}

body {
    font-family: 'Cairo', 'Tahoma', 'Arial', sans-serif;
    background-color: var(--soft-bg);
    color: var(--text-dark);
}

.navbar,
.navigationbar {
    background-color: var(--main-green);
    color: white;
    padding: 18px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.title,
.logo {
    color: white;
    font-size: 28px;
    font-weight: 800;
}

.navigationbar a,
.nav-links a {
    color: white;
    font-weight: 700;
}

.navigationbar a:hover,
.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.nightmodebutton,
.theme-btn {
    background-color: var(--dark-green);
    color: white;
    border: none;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.nightmodebutton:hover,
.theme-btn:hover {
    background-color: #0b3d2a;
}

/* Gallery - Hero Reference Styling */
.mainimage {
    max-width: 1300px;
    height: 540px;
    margin: 30px auto 0;
    border-radius: 24px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.aboveimage {
    background: rgba(0, 0, 0, 0.34);
}

.aboveimage h1 {
    color: white;
    font-size: 56px;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.galleryheader {
    background-color: var(--soft-bg);
    color: var(--text-dark);
}

.galleryheader h2,
.cards-section h2,
.view-all {
    color: var(--main-green);
    font-weight: 800;
}

.galleryheader p {
    color: var(--text-dark);
    font-size: 18px;
}

.filter label {
    color: var(--main-green);
    font-weight: 800;
}

.filter select {
    background-color: white;
    color: var(--main-green);
    border: 1px solid #9fb5a8;
    font-weight: 600;
}

.cards-section,
.card-front,
.regioncard .card-front,
.regioncard .card-back,
.preview-panel,
.form-panel {
    background-color: var(--card-bg);
}

.regioncard .card-front h3,
.card h3 {
    color: var(--main-green);
    font-weight: 800;
}

.regioncard .card-back {
    background-color: var(--main-green);
    color: white;
}

.button,
.btn,
.preview-btn,
.save-btn {
    background-color: var(--button-green);
    color: white;
    font-weight: 700;
}

.button:hover,
.btn:hover,
.preview-btn:hover,
.save-btn:hover {
    background-color: var(--dark-green);
}

.footer {
    background: var(--main-green);
    color: white;
}

.totopbutton {
    background-color: white;
    color: var(--main-green);
    font-weight: 700;
}


/* Admin Login Page */

.loginPage {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.loginPage section {
    background-color: white;
    width: 100%;
    max-width: 28rem;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

.loginPage h1 {
    text-align: center;
    color: #145c40;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.loginPage fieldset {
    border: none;
    margin-bottom: 1.25rem;
}

.loginPage label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #145c40;
    font-weight: bold;
}

.loginPage input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.0625rem solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #fff;
}

.loginPage .loginbutton {
    width: 100%;
    background-color: #145c40;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.loginPage .loginbutton:hover {
    background-color: #0f4933;
}

/* Dark Mode - Admin Login */

.dark-mode .loginPage section {
    background-color: #1e1e1e;
    color: white;
}

.dark-mode .loginPage h1,
.dark-mode .loginPage label {
    color: #d8f3dc;
}

.dark-mode .loginPage input {
    background-color: #1f2937;
    color: #f9fafb;
    border: 0.0625rem solid #555;
}

.dark-mode .loginPage .loginbutton {
    background-color: #16a34a;
    color: white;
}


/* Region Details Page */

.detailscontainer {
    width: 75%;
    max-width: 950px;
    margin: 2rem auto;
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.mainplaceimage {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 1.5rem;
}

.detailscontainer h1 {
    color: #1f4d38;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    text-align: right;
}

.detailscontainer p {
    color: #333;
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: right;
}

.sectiontitle {
    color: #1f4d38;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
    text-align: right;
}

.detailslist {
    background-color: #eef7f1;
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    color: #333;
    line-height: 1.9;
}

.placesgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.placesbox {
    background-color: #f7faf8;
    border: 1px solid #d9e8dd;
    border-radius: 12px;
    padding: 1rem;
}

.landmarksgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.landmarkcard {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.landmarkcard:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.landmarkcard img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Dark Mode - Region Details Page */


body.dark-mode .detailscontainer {
    background-color: #1b2430;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

body.dark-mode .detailscontainer h1,
body.dark-mode .sectiontitle {
    color: #d8efe2;
}

body.dark-mode .detailscontainer p,
body.dark-mode .detailslist {
    color: #e6eaf0;
}

body.dark-mode .detailslist,
body.dark-mode .placesbox {
    background-color: #233142;
    border-color: #34465a;
}

/* Responsive Design - Details/Gallery */
@media (max-width: 768px) {
    .detailscontainer {
        width: 90%;
        padding: 1rem;
    }

    .mainplaceimage {
        height: 200px;
    }

    .placesgrid,
    .landmarksgrid {
        grid-template-columns: 1fr;
    }

    .landmarkcard img {
        height: 170px;
    }
}

@media (max-width: 900px) {
    .mainimage {
        height: 460px;
        margin: 20px 15px 0;
    }

    .aboveimage h1 {
        font-size: 40px;
    }
}

@media (max-width: 600px) {

    .navigationbar,
    .navbar {
        padding: 16px 18px;
    }

    .mainimage {
        height: 360px;
    }

    .aboveimage h1 {
        font-size: 32px;
    }
}

/* Gallery Slider Fix
   Makes images inside .mainimage move like homepage  */
.mainimage {
    position: relative;
    max-width: 1300px;
    height: 540px;
    margin: 30px auto 0;
    border-radius: 24px;
    overflow: hidden;
    background: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.mainimage .slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mainimage .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mainimage .slide.active {
    opacity: 1;
}

.mainimage .aboveimage {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.34);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.mainimage .aboveimage h1 {
    color: white;
    font-size: 56px;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* Admin Dashboard Page */

.dashboardpage {
    width: 90%;
    max-width: 75rem;
    margin: 2rem auto;
}

.messageBox {
    background-color: var(--card-bg);
    color: var(--main-green);
    border-right: 0.3125rem solid var(--main-green);
    padding: 1rem;
    border-radius: 0.625rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
    font-weight: bold;
}

.dashboardHeader {
    margin-bottom: 1.5rem;
}

.dashboardHeader h2 {
    color: var(--main-green);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dashboardHeader p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

.addContent {
    margin-bottom: 1.5rem;
}

.addButton {
    display: inline-block;
    background-color: var(--button-green);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.addButton:hover {
    background-color: var(--dark-green);
}

.dashboardTable {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    overflow-x: auto;
}

.dashboardTable table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.dashboardTable thead {
    background-color: var(--main-green);
    color: white;
}

.dashboardTable th,
.dashboardTable td {
    padding: 1rem;
    /*border-bottom: 0.0625rem solid #ddd;*/
    border-bottom: none;
    vertical-align: middle; 
}
.dashboardTable tr {
    border-bottom: 0.0625rem solid #ddd;
}
.actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}
.actions form {
    margin: 0;      
    padding: 0;
    display: flex;  
    align-items: center;
}

.editButton,
.deleteButton {
    text-decoration: none;
    color: white;
    padding: 0.5rem 0.875rem;
    border-radius: 0.375rem;
  /*  display: inline-block;*/
    font-weight: 700;
    border: none;
    vertical-align: middle;  
    box-sizing: border-box;   
    line-height: 1.5; 
    

}

.editButton {
    background-color: var(--button-green);
}

.editButton:hover {
    background-color: var(--dark-green);
}

.deleteButton {
    background-color: #aa1d1d;
    cursor: pointer;         
    font-size: 1rem;        
    font-family: inherit;    
    line-height: normal;    
}

.deleteButton:hover {
    background-color: #cc3d3d;
}

/*Dark Mode - Dashboard */

body.dark-mode .messageBox {
    background-color: #111827;
    color: #d8f3dc;
    border-right: 0.3125rem solid #176b4c;
}

body.dark-mode .dashboardHeader h2 {
    color: #86efac;
}

body.dark-mode .dashboardHeader p {
    color: #d1d5db;
}

body.dark-mode .dashboardTable {
    background-color: #111827;
    color: white;
}

body.dark-mode .dashboardTable table {
    color: white;
}

body.dark-mode .dashboardTable th,
body.dark-mode .dashboardTable td {
    border-bottom: 0.0625rem solid #374151;
}

body.dark-mode .dashboardTable thead {
    background-color: #0b3d2a;
}

body.dark-mode .addButton,
body.dark-mode .editButton {
    background-color: #176b4c;
    color: white;
}

body.dark-mode .addButton:hover,
body.dark-mode .editButton:hover {
    background-color: #0b3d2a;
}

body.dark-mode .deleteButton {
    background-color: #374151;
    color: white;
}

body.dark-mode .deleteButton:hover {
    background-color: #4b5563;
}


/* Additional Dark Mode Overrides */

.dark-mode .navbar {
    background-color: #0c2f23;
}

.dark-mode .theme-btn {
    background-color: #1f2937;
    color: white;
}

.dark-mode .form-panel {
    background-color: #111827;
}

.dark-mode .panel-title {
    color: #86efac;
    border-bottom: 2px solid #374151;
}

.dark-mode .update-form label {
    color: #d1d5db;
}

.dark-mode .update-form input,
.dark-mode .update-form textarea {
    background-color: #1f2937;
    border: 1px solid #374151;
    color: white;
}

.dark-mode .save-btn {
    background-color: #0c2f23;
}

.dark-mode .save-btn:hover {
    background-color: #14532d;
}


/*Dark Mode - Admin Update Page Fix */

body.dark-mode.admin-page-body {
    background-color: #0b1320;
    color: #f3f4f6;
}


body.dark-mode .admin-title {
    color: #86efac;
}

body.dark-mode .admin-subtitle {
    color: #d1d5db;
}


body.dark-mode .preview-panel,
body.dark-mode .form-panel {
    background-color: #111827;
    color: white;
}


body.dark-mode .current-item h3 {
    color: #f9fafb;
}

body.dark-mode .small-label {
    color: #9ca3af;
}


body.dark-mode .thumb-grid img {
    filter: brightness(0.9);
}


body.dark-mode .preview-btn {
    background-color: #176b4c;
}

body.dark-mode .delete-btn {
    background-color: #7f1d1d;
}

body.dark-mode .delete-btn:hover {
    background-color: #991b1b;
}


body.dark-mode .update-form select {
    background-color: #1f2937;
    color: white;
    border: 1px solid #374151;
}


body.dark-mode .success-message {
    background-color: #064e3b;
    color: #d1fae5;
}
