/* ============================================================
   PestShield Pro - Custom Stylesheet
   ============================================================ */

:root {
    --primary: #1B5E20;
    --primary-dark: #0D3B0F;
    --primary-light: #4CAF50;
    --accent: #FF6F00;
    --accent-light: #FFA040;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ---- NAVBAR ---- */
.navbar-brand img {
    max-height: 50px;
}

.navbar {
    padding: 15px 0;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow);
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.navbar .nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 5px;
    padding: 8px 18px !important;
    border-radius: 25px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: var(--primary);
    color: var(--white) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.navbar-brand i {
    color: var(--accent);
}

/* ---- HERO SLIDER ---- */
.hero-slider {
    position: relative;
}

.hero-slider .carousel-item {
    height: 85vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(27,94,32,0.85), rgba(0,0,0,0.5));
}

.hero-slider .carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    max-width: 650px;
}

.hero-slider .carousel-caption h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-slider .carousel-caption p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-slider .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(27,94,32,0.3);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,111,0,0.3);
}

.btn-outline-custom {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary);
}

/* ---- SECTIONS ---- */
.section {
    padding: 80px 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 20px;
    border-radius: 2px;
}

/* ---- ACHIEVEMENTS ---- */
.achievement-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.achievement-card .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.achievement-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.achievement-card p {
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 0;
}

/* ---- SERVICES CARDS ---- */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(76,175,80,0.3);
}

.service-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ---- REVIEWS CAROUSEL ---- */
.review-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
}

.review-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 35px;
    text-align: center;
    margin: 15px;
    border: 1px solid rgba(255,255,255,0.15);
}

.review-card .stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.review-card p {
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 20px;
    line-height: 1.7;
}

.review-card .reviewer {
    font-weight: 700;
    font-size: 1.05rem;
}

.review-card .reviewer-role {
    opacity: 0.7;
    font-size: 0.85rem;
}

.review-card .reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, var(--accent), #FF8F00);
    color: var(--white);
    padding: 60px 0;
}

.cta-section h2 {
    font-weight: 800;
    font-size: 2.2rem;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer .footer-links li {
    margin-bottom: 10px;
}

.footer .social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--transition);
}

.footer .social-icons a:hover {
    background: var(--accent);
    border-color: var(--accent);
    padding-left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    margin-top: 40px;
}

/* ---- ABOUT PAGE ---- */
.about-hero {
    background: linear-gradient(135deg, rgba(27,94,32,0.9), rgba(0,0,0,0.7));
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
}

.why-choose-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.why-choose-card:hover {
    transform: translateY(-5px);
}

.why-choose-card .icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

/* ---- QUOTE FORM ---- */
.quote-hero {
    background: linear-gradient(135deg, rgba(27,94,32,0.9), rgba(0,0,0,0.7));
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
}

.quote-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    position: relative;
    z-index: 2;
}

.quote-form-card .form-control,
.quote-form-card .form-select {
    padding: 12px 18px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: var(--transition);
}

.quote-form-card .form-control:focus,
.quote-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

.quote-form-card label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

/* ---- CONTACT PAGE ---- */
.contact-hero {
    background: linear-gradient(135deg, rgba(27,94,32,0.9), rgba(0,0,0,0.7));
    padding: 120px 0 80px;
    color: var(--white);
    text-align: center;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 1.3rem;
}

/* ---- LOGIN PAGE ---- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 45px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.login-card h2 {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
}

.login-card .form-control {
    padding: 12px 18px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.15);
}

/* ---- ADMIN PANEL ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

.admin-sidebar {
    min-height: 100vh;
    background: var(--dark);
    color: var(--white);
    padding-top: 20px;
    position: fixed;
    width: 260px;
    z-index: 100;
    transition: var(--transition);
}

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

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 12px 20px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.05);
    color: var(--white) !important;
    border-left-color: var(--accent);
}

.admin-sidebar .nav-link i {
    width: 25px;
    margin-right: 10px;
}

.admin-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    background: #f0f2f5;
}

.admin-topbar {
    background: var(--white);
    padding: 15px 30px;
    margin: -30px -30px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card.accent {
    border-left-color: var(--accent);
}

.stat-card.info {
    border-left-color: #0288D1;
}

.stat-card.success {
    border-left-color: #2E7D32;
}

.stat-card h3 {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--gray);
    margin-bottom: 0;
    font-weight: 500;
}

/* ---- BADGE ---- */
.badge-pending {
    background: #FFF3E0;
    color: #E65100;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-completed {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .hero-slider .carousel-item {
        height: 60vh;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 2rem;
    }
    .hero-slider .carousel-caption {
        text-align: center;
        max-width: 100%;
    }
    .admin-sidebar {
        width: 0;
        overflow: hidden;
    }
    .admin-sidebar.show {
        width: 260px;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .admin-content {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-slider .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .quote-form-card {
        padding: 25px;
    }
    .login-card {
        padding: 30px 20px;
    }
}

/* ---- ANIMATIONS ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- OWL CAROUSEL CUSTOM ---- */
.owl-theme .owl-dots .owl-dot span {
    background: rgba(255,255,255,0.4);
}

.owl-theme .owl-dots .owl-dot.active span {
    background: var(--accent);
}

/* ---- LOADING OVERLAY ---- */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

/* ---- DATATABLES CUSTOM ---- */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 12px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    outline: none;
}

/* ---- MOBILE MENU TOGGLE ---- */
.sidebar-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: inline-block;
    }
}

/* ---- TOAST NOTIFICATION ---- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}
