/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #0f6423;
    --primary-hover: #0d5820;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #222;
    --white: #ffffff;
    --gray-light: #f1f1f1;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
    background-color: var(--white);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* ===== HEADER & NAVIGATION ===== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active:after {
    width: 100%;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    margin-top: 0;
    border-radius: 8px;
}

.dropdown-item {
    position: relative;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.dropdown-submenu {
    position: relative;
}

/* Desktop Styles */
@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
        opacity: 1;
    }

    .dropdown-submenu > a::after {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        border: none;
        margin-left: 10px;
        float: right;
    }
}

/* Mobile Styles */
@media (max-width: 991.98px) {
    .dropdown-menu {
        box-shadow: none;
        border-left: 2px solid var(--primary-color);
        margin-left: 15px;
    }
    
    .dropdown-submenu > .dropdown-menu {
        position: static;
        left: auto;
        margin-top: 0;
        display: none !important;
    }
    
    .dropdown-submenu.show > .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-submenu > a::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        border: none;
        margin-left: 10px;
        float: right;
        transition: transform 0.3s ease;
    }
    
    .dropdown-submenu.show > a::after {
        transform: rotate(180deg);
    }
}

.dropdown-item:hover {
    background-color: rgba(15, 100, 35, 0.1);
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 5px;
    bottom: 100px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero-bottom-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.hero-bottom-bar .col-md-4 {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-bottom-bar .col-md-4:last-child {
    border-right: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    font-weight: 500;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* ===== SECTIONS ===== */
.about-section,
.services-section,
.products-section,
.advantage-section,
.how-we-work-section,
.choose-us-section,
.values-section,
.stats-section,
.work-together,
.network-section,
.info-section {
    padding: 80px 0;
}

.services-section,
.how-we-work-section,
.values-section,
.work-together {
    background-color: var(--light-bg);
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .read-more {
    opacity: 1;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 250px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 100, 35, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-products {
    color: var(--white);
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid var(--white);
    border-radius: 30px;
    transition: var(--transition);
    text-decoration: none;
}

.view-products:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ===== ADVANTAGE CARDS ===== */
.advantage-card,
.value-card,
.work-step {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover,
.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon,
.value-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(15, 100, 35, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon,
.value-card:hover .value-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===== WORK STEPS ===== */
.work-step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* ===== FEATURE LISTS ===== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.feature-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== NETWORK SECTION ===== */
.network-item {
    text-align: center;
    margin-bottom: 30px;
}

.network-img {
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-img img {
    max-height: 100%;
    max-width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.network-item:hover .network-img img {
    filter: grayscale(0%);
}

/* ===== INFO CARDS ===== */
.info-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.info-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.info-header i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.info-body {
    padding: 20px;
    background-color: var(--white);
}

.info-features {
    list-style-type: none;
    padding-left: 0;
}

.info-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.info-features li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('https://images.unsplash.com/photo-1467232004584-a241de8bcf5d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb {
    background-color: transparent;
    justify-content: center;
}

.breadcrumb-item a {
    color: var(--white);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== PRODUCT HERO ===== */
.product-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.product-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.product-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== PRODUCT DETAILS ===== */
.product-detail-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.product-image-carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-specs,
.production-capacity {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.product-specs h4,
.production-capacity h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.product-specs ul {
    padding-left: 20px;
}

.product-specs li {
    margin-bottom: 8px;
    color: var(--gray-medium);
}

.product-specs strong {
    color: var(--text-color);
}

/* ===== PRODUCT FEATURES ===== */
.product-features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background-color: var(--light-bg);
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

/* ===== GALLERY ===== */
.product-gallery-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 10px;
    text-align: center;
}

.gallery-overlay p {
    margin: 0;
    font-size: 1rem;
}

/* ===== CTA SECTIONS ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.work-together {
    text-align: center;
}

.work-together h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-bg);
    color: #ddd;
    padding: 60px 0 0;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    color: #aaa;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-links h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.footer-contact li {
    margin-bottom: 10px;
    color: #aaa;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.footer-bottom {
    padding: 20px 0;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #444;
    color: #aaa;
}

/* ===== FORM STYLES ===== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px 15px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(15, 100, 35, 0.25);
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* ===== BADGES ===== */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        margin-top: 15px;
    }

    .dropdown-submenu .dropdown-menu {
        left: 15px;
        right: 15px;
        width: auto;
    }

    .hero-section,
    .carousel-item {
        height: 500px;
    }

    .carousel-caption {
        bottom: 50px;
        padding: 20px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

    .page-header {
        padding: 100px 0 60px;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .product-hero {
        height: 350px;
        margin-top: 70px;
    }

    .product-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section,
    .carousel-item {
        height: 400px;
    }

    .carousel-caption {
        bottom: 20px;
        padding: 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 1rem;
    }

    .advantage-card,
    .value-card,
    .work-step {
        margin-bottom: 20px;
    }

    .page-header {
        padding: 80px 0 40px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .product-hero {
        height: 300px;
    }

    .product-hero h1 {
        font-size: 2rem;
    }

    .about-section,
    .services-section,
    .products-section,
    .advantage-section,
    .how-we-work-section,
    .choose-us-section,
    .values-section,
    .stats-section,
    .work-together,
    .network-section,
    .info-section {
        padding: 60px 0;
    }
}

@media (max-width: 575.98px) {
    .hero-section,
    .carousel-item {
        height: 350px;
    }

    .carousel-caption h1 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .product-hero {
        height: 250px;
    }

    .product-hero h1 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .hero-bottom-bar .col-md-4 {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 10px 0;
    }

    .hero-bottom-bar .col-md-4:last-child {
        border-bottom: none;
    }
}

/* ===== ADMIN PANEL STYLES ===== */
.admin-body {
    background-color: #f8f9fa;
    padding-top: 0;
}

.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: var(--gray-dark);
    padding: 12px 20px;
    margin: 0;
    border-radius: 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
}

/* Admin Cards */
.admin-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: none;
    transition: var(--transition);
}

.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.admin-card .card-header {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
}

/* Admin Tables */
.admin-table {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.admin-table th {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 15px;
}

.admin-table td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Admin Forms */
.admin-form .form-control {
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.admin-form .form-label {
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

/* Admin Buttons */
.btn-admin {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-admin-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-admin-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Admin Modals */
.admin-modal .modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.admin-modal .modal-title {
    font-weight: 600;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
    }
    
    .sidebar {
        position: fixed;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-light { background-color: var(--light-bg) !important; }

.shadow-sm { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-hover) !important; }

.rounded { border-radius: 8px !important; }
.rounded-lg { border-radius: 12px !important; }

.transition { transition: var(--transition) !important; }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        margin-top: 0;
    }
}

/* Multi-level dropdown (flyout) styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.15rem;
    border-radius: 0.35rem;
    min-width: 12rem;
    display: none;               /* controlled by JS -> show on hover/click */
    position: absolute;
    z-index: 1050;
}

/* Show submenu when parent has .show */
.dropdown-submenu.show > .dropdown-menu {
    display: block;
}

/* caret arrow on right for items that have children */
.dropdown-submenu > a::after,
.nav-item .dropdown-submenu > a::after,
.dropdown-item.dropdown-toggle::after {
    content: '\25B6'; /* small right-pointing triangle */
    float: right;
    margin-left: 8px;
    font-size: 0.7rem;
    opacity: 0.6;
}

/* On small screens use fallback stacked behavior */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        left: auto;
        top: auto;
        margin-left: 0;
    }
    .dropdown-submenu > a::after {
        content: '\25BC'; /* down arrow on mobile */
    }
}

/* Optional styling: increase submenu item padding for readability */
.dropdown-menu .dropdown-item {
    padding: 10px 16px;
}

.drag-handle {
    font-size: 18px;
    color: #666;
    display: inline-block;
}
.drag-handle-cell { width:40px; }
.sortable-ghost { opacity: 0.6; background: #fffbe6 !important; }
.sortable-chosen { background: #f8f9fa !important; }

