/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
    scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
    text-align: center;
    font-family: 'Inter', sans-serif; /* modern font */
}

/* Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active slide */
.hero-slider .slide.active {
    opacity: 1;
}

/* Overlay to darken image */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* dark overlay for readability */
    z-index: 1;
}

/* Hero content */
.hero-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5); /* subtle shadow for readability */
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Call-to-action button */
.btn-quote {
    background: linear-gradient(135deg, #ff7f50, #ff6347);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-quote:hover {
    background: linear-gradient(135deg, #ff6347, #ff4500);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}


/* NAVBAR STYLING */
/* Default navbar (transparent) */
#mainNavbar {
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease;
    padding: 1rem 0;
}

/* Navbar after scrolling past hero */
#mainNavbar.scrolled {
    background: rgba(35, 39, 42, 0.95); /* new color */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
}


#mainNavbar .nav-link {
    color: #fff;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

#mainNavbar .nav-link:hover {
    color: #ff7f50;
    transform: translateY(-2px);
}

#mainNavbar .btn-primary {
    background: #ff7f50;
    border: none;
    transition: background 0.3s ease;
}

#mainNavbar .btn-primary:hover {
    background: #e26d3f;
}

#mainNavbar .btn-outline-light {
    color: #fff;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

#mainNavbar .btn-outline-light:hover {
    color: #ff7f50;
    border-color: #ff7f50;
    background: rgba(255, 127, 80, 0.1);
}

/* Mobile menu adjustments */
@media (max-width: 992px) {
    #mainNavbar .nav-item {
        margin-bottom: 10px;
    }
}



/* =========================
   NEWSLETTER SECTION
   ========================= */

.newsletter-section {
    background: linear-gradient(135deg, #23272a, #2c2f33);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 60px auto;
    max-width: 1200px;
}

.newsletter-container h2 {
    font-size: 2.8rem;
    color: #ff7f50;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.newsletter-container p {
    font-size: 1.2rem;
    color: #b9bbbe;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter-form input {
    padding: 15px 20px;
    border-radius: 10px;
    border: none;
    width: 300px;
    max-width: 100%;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    box-shadow: 0 0 15px rgba(255, 127, 80, 0.6);
}

.newsletter-form button {
    padding: 15px 30px;
    background: #ff7f50;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #e26d3f;
    transform: scale(1.05);
}

/* Optional subtle decorative shapes */
.newsletter-section::before,
.newsletter-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.newsletter-section::before {
    width: 200px;
    height: 200px;
    background: #ff7f50;
    top: -50px;
    left: -50px;
}

.newsletter-section::after {
    width: 300px;
    height: 300px;
    background: #e26d3f;
    bottom: -100px;
    right: -100px;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-container h2 {
        font-size: 2rem;
    }
    .newsletter-container p {
        font-size: 1rem;
    }
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    .newsletter-form input {
        width: 100%;
    }
    .newsletter-form button {
        width: 100%;
    }
}



/* ==============================
   ULTRA MODERN SERVICES SECTION (COMPACT)
   ============================== */
.services-section {
    background: linear-gradient(145deg, #23272a, #2c2f33);
    padding: 80px 15px; /* slightly reduced */
    color: #fff;
    text-align: center;
}

/* Section Header */
.services-header {
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

.services-header h2 {
    font-size: 2.4rem; /* smaller */
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.services-header p {
    font-size: 1rem; /* slightly smaller */
    color: #b9bbbe;
    line-height: 1.5;
}

/* Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* smaller cards */
    gap: 30px; /* tighter gap */
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Service Card */
.service-card {
    background: #1e2124;
    padding: 30px 20px; /* smaller padding */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Glow Effect on Hover */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 127, 80, 0.15), rgba(255, 127, 80, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

/* Icon Styling */
.service-icon {
    width: 65px; /* smaller */
    height: 65px;
    background: rgba(255, 127, 80, 0.1);
    color: #ff7f50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.6rem; /* smaller icon */
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.service-card:hover .service-icon {
    background: rgba(255, 127, 80, 0.2);
    transform: scale(1.1);
}

/* Card Titles */
.service-card h3 {
    font-size: 1.4rem; /* slightly smaller */
    color: #fff;
    margin-bottom: 10px;
    z-index: 1;
}

/* Description Text */
.service-card p {
    font-size: 0.95rem; /* smaller */
    color: #b9bbbe;
    line-height: 1.4;
    margin-bottom: 20px;
    z-index: 1;
}

/* Button */
.btn-service {
    display: inline-block;
    background: #ff7f50;
    color: white;
    padding: 10px 22px;
    font-size: 0.95rem;
    border-radius: 7px;
    transition: background 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative; /* for z-index */
    z-index: 1;
}

.btn-service:hover {
    background: #e26d3f;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .services-header h2 {
        font-size: 2rem;
    }

    .services-header p {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 25px 15px;
    }
}


#more-services {
    transition: all 0.3s ease;
}

.view-all-container {
    text-align: center;
    margin-top: 30px;
}


.hidden-services {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
}

.hidden-services.show {
    opacity: 1;
    max-height: 200px; /* large enough to show all hidden items */
    display: contents;
}

/* ==============================
   ABOUT US SECTION
   ============================== */

.about-section {
    background: #fff;
    padding: 80px 20px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

/* Left Image */
.about-image {
    flex: 1 1 450px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

/* Right Content */
.about-content {
    flex: 1 1 500px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #ff7f50;
    margin-bottom: 20px;
}

.about-content .intro-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.highlight h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.highlight p,
.highlight ul {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.highlight ul {
    list-style: none;
    padding: 0;
}

.highlight ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}

.highlight ul li::before {
    content: "✔";
    color: #ff7f50;
    position: absolute;
    left: 0;
    font-size: 1rem;
}

/* ==============================
   TEAM SECTION
   ============================== */

.team-section {
    background: #f9f9f9;
    padding: 80px 20px;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-container h2 {
    font-size: 2.5rem;
    color: #ff7f50;
    margin-bottom: 20px;
}

.team-container .team-intro {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    max-width: 200px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.team-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-card p {
    color: #777;
    font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-highlights {
        grid-template-columns: 1fr;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 350px;
    }
}








/* ==============================
   OUR APPROACH SECTION
   ============================== */
.approach-section {
    background: #f0f4f8;
    padding: 100px 20px;
    text-align: center;
    color: #2c3e50;
}

.approach-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #ff7f50;
}

.approach-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto 60px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.approach-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.approach-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 20px;
    background: #ff7f50;
    color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.approach-card:hover .approach-icon {
    transform: scale(1.2);
    background: #e26d3f;
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.approach-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .approach-header h2 {
        font-size: 2.2rem;
    }

    .approach-header p {
        font-size: 1rem;
    }
}













/* ==============================
   SLEEK LIGHT GALLERY SECTION
   ============================== */
.gallery-section {
    background: #f9fafb; /* light, clean background */
    padding: 100px 20px;
    color: #333;
    text-align: center;
}

.gallery-header {
    margin-bottom: 50px;
}

.gallery-header h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #2c3e50; /* dark slate for contrast */
    font-weight: 600;
}

.gallery-header p {
    font-size: 1.2rem;
    color: #7f8c8d; /* soft gray for subtitle */
}

/* Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover Effects */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Optional Overlay Effect with subtle glow */
.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 127, 80, 0.05); /* very subtle highlight */
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Caption inside gallery items (optional) */
.gallery-item .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    text-align: left;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-header h2 {
        font-size: 2.2rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    .gallery-grid {
        gap: 20px;
    }
}














/* ==============================
   CONTACT SECTION
   ============================== */
.contact-section {
    background: #f9f9f9;
    padding: 80px 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

/* Left side info */
.contact-info {
    flex: 1 1 350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-info h2 {
    font-size: 2rem;
    color: #ff7f50;
    margin-bottom: 15px;
}

.contact-info p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-details p {
    font-size: 1rem;
    margin-bottom: 10px;
}

/* Right side form */
.contact-form {
    flex: 1 1 500px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff7f50;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ff7f50;
}

.contact-form textarea {
    resize: none;
}

.btn-submit {
    background: #ff7f50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #e26d3f;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }
}


/* Footer Styling */
.footer {
    background: #1e2124;
    color: #b9bbbe;
    padding: 50px 20px 20px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.footer-logo h2 {
    color: #ff7f50;
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.footer-links a {
    color: #b9bbbe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff7f50;
}

.btn-admin {
    background: #ff7f50;
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-admin:hover {
    background: #e26d3f;
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 5px 0;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        gap: 10px;
    }
}














/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f4f6f8;
    transition: all 0.3s ease;
}

/* ==========================================
   SIDEBAR
   ========================================== */
.dashboard-sidebar {
    width: 260px;
    background: rgba(255, 127, 80, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    position: relative;
    transition: transform 0.3s ease;
}

/* Sidebar Header */
.sidebar-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

/* Sidebar Navigation */
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.sidebar-nav i {
    font-size: 1.1rem;
}

/* Logout Button */
.logout-form {
    margin-top: auto;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #c0392b;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.dashboard-main {
    flex: 1;
    padding: 30px;
    transition: all 0.3s ease;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.dashboard-header h2 {
    font-size: 1.5rem;
    color: #222;
}

/* ==========================================
   DASHBOARD CARDS
   ========================================== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.card p {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ff7f50;
}

/* ==========================================
   TABLES
   ========================================== */
.dashboard-section {
    margin-top: 25px;
}

.table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.table td, .table th {
    overflow: visible;
}

.table th {
    background: #ff7f50;
    color: white;
    font-weight: 600;
    padding: 14px 16px;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.table tr:hover {
    background: #f9f9f9;
    transition: background 0.25s ease;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    border-radius: 8px !important;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Search Input */
#searchInput {
    max-width: 220px;
    border-radius: 8px;
    padding: 6px 10px;
}

/* ==========================================
   MODALS
   ========================================== */
.modal-content {
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9rem;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */
@media (max-width: 992px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .dashboard-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1000;
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
        background: #ff7f50;
        border: none;
        color: white;
        padding: 10px 15px;
        font-size: 1.2rem;
        border-radius: 8px;
        cursor: pointer;
        margin: 10px 0;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        text-align: center;
    }

    .table {
        font-size: 0.9rem;
        overflow-x: auto;
        display: block;
        
    }

    .table th, .table td {
        padding: 10px 8px;
        font-size: 0.9rem;
        width: 100%;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   DARK MODE
   ========================================== */
body.dark-mode {
    background: #1e1f22;
    color: #f1f1f1;
}

body.dark-mode .dashboard-header,
body.dark-mode .card,
body.dark-mode .table,
body.dark-mode .modal-content {
    background: #2a2b2e;
    color: #f1f1f1;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

body.dark-mode .dashboard-header h2 {
    color: #f1f1f1;
}

body.dark-mode .table th {
    background-color: #ff7f50;
    color: #fff;
}

body.dark-mode .table td {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
}

body.dark-mode .table tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .dashboard-sidebar {
    background: rgba(35,36,39,0.95);
}

body.dark-mode .sidebar-nav a.active,
body.dark-mode .sidebar-nav a:hover {
    background: rgba(255, 127, 80, 0.3);
}

body.dark-mode .btn {
    color: white;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
    background: #2e3033;
    color: #eee;
    border: 1px solid #444;
}

/* ==========================================
   BUTTON GROUPS
   ========================================== */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.btn-group button {
    flex: 1;
}




/* SETTINGS PAGE */

/* ==========================================
   SETTINGS PAGE
   ========================================== */

/* Tabs Container */
.settings-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f4f6f8;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #555;
}

.tab-btn:hover {
    background: #ff7f50;
    color: #fff;
}

.tab-btn.active {
    background: #ff7f50;
    color: #fff;
    box-shadow: 0 -2px 0 #ff7f50 inset;
}

/* Tab Content */
.settings-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-top: -2px; /* overlap the tab border */
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease-in;
}

.tab-pane.active {
    display: block;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #ff7f50;
    box-shadow: 0 0 5px rgba(255,127,80,0.3);
    outline: none;
}

/* Checkboxes */
input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #ff7f50;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #ff7f50;
    color: #fff;
}

.btn-primary:hover {
    background: #e06b3c;
}

.btn-warning {
    background: #f39c12;
    color: #fff;
}

.btn-warning:hover {
    background: #d4880f;
}

/* Responsive */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
        gap: 5px;
    }

    .tab-btn {
        width: 100%;
    }
}

/* Fade in animation for tab content */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Dark Mode Integration */
body.dark-mode .settings-content {
    background: #2a2b2e;
    color: #f1f1f1;
}

body.dark-mode .settings-content label {
    color: #f1f1f1;
}

body.dark-mode .form-control {
    background: #2e3033;
    color: #eee;
    border: 1px solid #444;
}

body.dark-mode .tab-btn {
    background: #444;
    color: #ccc;
}

body.dark-mode .tab-btn.active {
    background: #ff7f50;
    color: #fff;
}

body.dark-mode .btn-primary, 
body.dark-mode .btn-warning {
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}



















/* ==============================
   MODAL FOR EMAIL TEMPLATE VIEWING / SETTINGS IMPROVED
   ============================== */
.preview-custom-modal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 100;
    justify-content: center;
    align-items: center;
}


.preview-custom-modal .modal-dialog {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    display: flex;
    flex-direction: column;
    
    position: fixed;       /* fixed ensures it stays in viewport */
    top: 50%;              /* center vertically */
    left: 50%;             /* center horizontally */
    transform: translate(-50%, -50%); /* adjust for perfect centering */
    
    z-index: 10000;        /* ensure above overlay */
    pointer-events: auto;  /* allow interaction */
    
    overflow: hidden;      /* prevent content overflow */
}


.preview-custom-modal .modal-header h3 {
    margin-bottom: 15px;
    color: #ff7f50;
}

.preview-custom-modal .modal-body {
    flex: 1;
    font-size: 1rem;
    color: #333;
    margin-bottom: 20px;
    overflow-y: auto;       /* scroll if content is too tall */
    max-height: 70vh;       /* don’t let modal exceed 70% viewport height */
}

.preview-custom-modal .modal-footer {
    display: flex;
    justify-content: center;
}

/* Buttons */
.preview-custom-modal #closeModal,
.preview-custom-modal #closeTemplateModal {
    padding: 10px 25px;
    border-radius: 8px;
    background: #ff7f50;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;  /* ✅ ensures pointer appears */
    transition: all 0.3s ease;
    
}

.preview-custom-modal #closeModal:hover,
.preview-custom-modal #closeTemplateModal:hover {
    background: #e26d3f;
    transform: translateY(-1px);
}

/* Dark mode support */
.preview-custom-modal body.dark-mode .modal-dialog {
    background: #2a2b2e;
    color: #f1f1f1;
}

.preview-custom-modal body.dark-mode #closeModal,
.preview-custom-modal body.dark-mode #closeTemplateModal {
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .preview-custom-modal .modal-dialog {
        padding: 25px 15px 40px;
    }

    .preview-custom-modal .modal-header h3 {
        font-size: 1.4rem;
    }

    .preview-custom-modal .modal-body {
        font-size: 0.95rem;
    }

    .preview-custom-modal .modal-footer button {
        width: 100%;
        padding: 12px 0;
    }
}
