/* Variables CSS - Design System */
:root {
    /* Paleta de Colores */
    --color-primary: #1B2A36;
    /* Fondo principal */
    --color-secondary: #A4C8A0;
    /* Botones, títulos */
    --color-accent: #3B82F6;
    /* Hover, dinamismo */
    --color-neutral-light: #E5E7EB;
    /* Tarjetas */

    /* Text Colors */
    --color-text-main: #FFFFFF;
    --color-text-secondary: #9CA3AF;
    --color-text-dark: #1B2A36;
    /* For light backgrounds */

    /* Fondos */
    --bg-body: var(--color-primary);
    --bg-card: var(--color-neutral-light);
    --bg-input: #F9FAFB;

    /* Tipografía */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    color: var(--color-text-main);
    padding: 20px;
}

/* Clases utilitarias básicas */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background-color: var(--bg-card);
    color: var(--color-text-dark);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 1rem;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: var(--color-text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading, var(--font-main));
    /* Fallback to main if heading not generic */
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-secondary);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Botones */
.btn {
    display: inline-block;
    background: var(--color-secondary);
    color: #FFFFFF;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background: var(--color-accent);
    color: #FFFFFF;
}

/* Navbar Styles */
.navbar {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.logo:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-main);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-accent);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-main);
    transition: all 0.3s ease-in-out;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Adjust based on navbar height */
        gap: 0;
        flex-direction: column;
        background-color: var(--color-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Alert Box */
.alert-box {
    background-color: var(--color-neutral-light);
    border: 2px solid var(--color-secondary);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--color-text-dark);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.alert-box h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-image: url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 42, 54, 0.7);
    /* Primary color with opacity */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #E5E7EB;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Services Section */
.section {
    padding: 4rem 0;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    /* Aligns text and grid vertically centered */
}

/* Reverse layout for desktop */
@media (min-width: 769px) {
    .split-layout.reverse-desktop {
        flex-direction: row-reverse;
    }
}

.services-text {
    flex: 1 1 400px;
    /* Takes up space but wraps if narrow */
}

.services-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    line-height: 1.2;
}

.services-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.services-grid {
    flex: 1 1 400px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    /* Center content in card */
}

.service-card i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    background-color: #FFFFFF;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.service-card h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .services-text,
    .services-grid {
        flex: 1 1 100%;
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .services-text h2 {
        font-size: 2rem;
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer-content {
    margin-bottom: 3rem;
    align-items: flex-start;
    justify-content: space-between;
    /* Push items to edges */
}

.footer-brand .logo {
    color: #FFFFFF;
    font-size: 2rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-brand .slogan {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-nav h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-card .description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    min-height: 40px;
    /* Align prices somewhat */
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.feature-list li i {
    color: var(--color-secondary);
}

@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Horizontal Cards (Additional Services) */
.horizontal-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.horizontal-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.horizontal-card .icon-wrapper {
    flex-shrink: 0;
}

.horizontal-card i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    background-color: #FFFFFF;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.horizontal-card .content h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.horizontal-card .content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .horizontal-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Dark Section variant */
.section-dark {
    background-color: var(--color-primary);
    color: #FFFFFF;
}

.section-dark h2 {
    color: #FFFFFF;
}

.section-dark p {
    color: var(--color-text-secondary);
}

/* Contact Page Styles */
.contact-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-top: 4px solid var(--color-secondary);
}

.contact-card h3 {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-card .description {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
    font-size: 1.1rem;
}

.contact-list li i {
    width: 40px;
    height: 40px;
    background-color: rgba(164, 200, 160, 0.2);
    /* Secondary low opacity */
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Form Styles */
.contact-form {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--bg-input);
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
}

/* Dark Section variant adjustments */
.section-dark .contact-card {
    background: #253341;
    /* Slightly lighter than primary */
    border: none;
}

.section-dark .contact-card h3 {
    color: #FFFFFF;
}

.section-dark .contact-list li {
    color: #E5E7EB;
}

/* Blog Page Styles */
.blog-list {
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    gap: 2rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.blog-card:last-child {
    border-bottom: none;
}

.blog-card:hover {
    background-color: #f9fafb;
    /* Light hover background */
    border-radius: 0.5rem;
}

.blog-image {
    flex: 0 0 200px;
    /* Requested 200px width */
    height: 150px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
    /* Zoom effect on hover */
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--color-accent);
}

.blog-meta {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-author {
    font-weight: 500;
    color: var(--color-secondary);
}

.blog-separator {
    color: #D1D5DB;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }

    .blog-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.25rem;
    }
}

/* Admin Panel Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    background-color: #f3f4f6;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--color-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
}

.sidebar-brand {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand a {
    color: #fff;
    text-decoration: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 0.8rem;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-accent);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.sidebar-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar-footer a:hover {
    color: #fff;
}

.admin-content-wrapper {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background-color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-topbar .page-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

.admin-topbar .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-topbar .avatar {
    width: 35px;
    height: 35px;
    background-color: var(--color-accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.admin-main-content {
    padding: 2rem;
    flex: 1;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.table-container {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 1rem; /* Increased from default */
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.2rem; /* Increased padding */
    text-align: left;
    border-bottom: 1px solid var(--color-neutral-light);
}

.admin-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.admin-table td {
    color: var(--color-text-dark);
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: #f9fafb;
}

.badge-published {
    background-color: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-draft {
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon.edit {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.btn-icon.edit:hover {
    background-color: #dbeafe;
}

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

.btn-icon.delete:hover {
    background-color: #fee2e2;
}

.admin-pagination {
    margin-top: 1rem;
    justify-content: flex-end;
}

.btn-page {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    color: #374151;
    text-decoration: none;
    background-color: #fff;
    transition: all 0.2s;
}

.btn-page:hover {
    background-color: #f3f4f6;
}

.btn-page.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-content-wrapper {
        margin-left: 0;
    }

    .admin-container.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
}

/* Submenu Styles */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
}

.submenu.open {
    display: block;
}

.submenu li a {
    padding-left: 3.5rem;
    font-size: 0.9rem;
    border-left: none !important;
}

.submenu li a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.has-submenu a.active .submenu-arrow {
    transform: rotate(180deg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    animation: slideDown 0.3s forwards;
}

@keyframes slideDown {
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-secondary);
}

.close-modal {
    color: #9ca3af;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background-color: #f9fafb;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Form Styles for Admin */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.2);
}

.btn-secondary {
    background-color: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
}