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

:root {
    --primary-green: #2d5016;
    --light-green: #4a7c2c;
    --dark-green: #1a3009;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --accent-green: #5fa832;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

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

header {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* .header-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
} */

.logo {
    order: 3;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

.nav-menu ul{
    list-style:none;
    display:flex;
    gap:30px;
    margin:0;
    padding:0;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--light-green);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--accent-green);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    order: 2;
}

.search-box input {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: none;
    border-radius: 25px;
    outline: none;
    width: 200px;
    transition: width 0.3s ease;
}

.search-box input:focus {
    width: 250px;
}

.search-box i {
    position: absolute;
    right: 15px;
    color: var(--primary-green);
}

main {
    min-height: calc(100vh - 200px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner {
    width: 100%;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-green) 100%);
}

.banner-placeholder {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.company-description {
    padding: 4rem 20px;
}

.company-description h2 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.company-description p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    text-align: justify;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.2);
    border-color: var(--accent-green);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

#profile .container,
#contact .container {
    padding: 4rem 20px;
}

#profile h2,
#products h2,
#contact h2 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.profile-content {
    max-width: 800px;
    margin: 2rem auto;
}

.profile-content h3 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.profile-content p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    text-align: justify;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--light-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(45, 80, 22, 0.2);
    border-color: var(--accent-green);
}

.product-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image i {
    font-size: 3rem;
    color: var(--white);
}

.product-card h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-card p {
    color: var(--dark-gray);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.contact-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
}

.submit-btn {
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 80, 22, 0.3);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.testimonials-section {
    background: var(--light-gray);
    padding: 4rem 0;
}

.testimonials-carousel {
    max-width: 800px;
    margin: 2rem auto;
}

.testimonial-slide {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
}

.testimonial-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.customer-name {
    color: var(--primary-green);
    font-weight: 600;
}

footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
    }

    .logo {
        text-align: center;
        order: 0;
    }

    .nav-menu {
        order: 1;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .search-box {
        order: 2;
        justify-content: center;
    }

    .search-box input {
        width: 100%;
    }

    .search-box input:focus {
        width: 100%;
    }

    .banner-placeholder {
        min-height: 250px;
    }

    .company-description h2,
    #profile h2,
    #products h2,
    #contact h2 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .company-description,
    #profile .container,
    #contact .container {
        padding: 2rem 20px;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

.hidden {
  display: none;
}

.page-title {
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

/* =========================
   LOGIN MODAL
   ========================= */

.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);

    justify-content: center;
    align-items: center;

    z-index: 1000;
}

/* Modal Card */

.login-modal-card {
    background: var(--white);
    padding: 35px 40px;
    border-radius: 10px;

    width: 360px;
    max-width: 90%;

    position: relative;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

    animation: modalFade 0.25s ease;
}

/* Title */

.login-modal-card h2 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* Close Button */

.login-close {
    position: absolute;
    right: 15px;
    top: 10px;

    cursor: pointer;
    font-size: 28px;
    font-weight: bold;

    color: #666;
    line-height: 1;

    padding: 4px 10px;
    border-radius: 5px;

    transition: all 0.2s ease;
}

.login-close:hover {
    color: var(--primary-green);
    background: var(--light-gray);
}

.login-close:hover {
    color: var(--primary-green);
}

/* Form Layout */

.login-modal-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Input Fields */

.login-modal-card input {
    padding: 10px 12px;

    border-radius: 6px;
    border: 2px solid #ddd;

    font-size: 0.95rem;

    transition: border-color 0.2s ease;
}

.login-modal-card input:focus {
    outline: none;
    border-color: var(--accent-green);
}

/* Login Button */

.login-modal-card button {
    margin-top: 8px;

    background: linear-gradient(
        135deg,
        var(--light-green),
        var(--accent-green)
    );

    color: var(--white);

    border: none;
    padding: 10px;

    border-radius: 6px;

    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}

.login-modal-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(45, 80, 22, 0.35);
}

.login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 8px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center;
}

/* Modal Animation */

@keyframes modalFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Nav Button (Header) */

.login-btn {
    all: unset;
    cursor: pointer;
    color: var(--white);
    padding: 0.5rem 1rem;
}

/* =========================
   DASHBOARD LAYOUT
   ========================= */

.app-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

/* Sidebar */

.sidebar {
    width: 220px;
    background: linear-gradient(
        180deg,
        var(--primary-green),
        var(--dark-green)
    );
    color: var(--white);
    padding: 20px 0;
}

.sidebar-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Sidebar links */

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    padding: 12px 25px;
    color: var(--white);
    text-decoration: none;
    transition: background 0.25s ease;
}

.sidebar-link i {
    margin-right: 10px;
}

.sidebar-link:hover {
    background: var(--light-green);
}

/* Main content */

.main-content {
    flex: 1;
    padding: 30px;
    background: var(--light-gray);
}

/* ================================
   USER MANAGEMENT PAGE
================================ */

.user-management-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.user-management-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.add-user-card {
    width: 420px;
    margin: 0 auto 40px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.add-user-card h3 {
    margin-bottom: 15px;
}

.add-user-card label {
    display: block;
    font-size: 14px;
    margin-top: 10px;
}

.add-user-card input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.add-user-card button {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.add-user-card button:hover {
    background: var(--light-green);
}

.users-table-container {
    margin-top: 40px;
}

.users-table-container h3 {
    text-align: center;
    margin-bottom: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.users-table th {
    background: var(--primary-green);
    color: white;
    padding: 12px;
    text-align: left;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.users-table tr:hover {
    background: #f9f9f9;
}

.user-action-btn {
    padding: 6px 10px;
    border-radius: 5px;
    border: none;
    font-size: 12px;
    cursor: pointer;
}

.reset-btn {
    background: #3498db;
    color: white;
}

.disable-btn {
    background: #e74c3c;
    color: white;
}

.enable-btn {
    background: #27ae60;
    color: white;
}

.user-action-btn:hover {
    opacity: 0.85;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #e8f8f0;
    color: #27ae60;
}

.status-disabled {
    background: #fdecea;
    color: #e74c3c;
}

.logo-img{
    height:50px;
}

.product-img{
    width:100%;
    height:220px;
    object-fit:contain;
    background:#fff;
    border-radius:8px;
}

.banner-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.site-title h1{
    font-size:22px;
    margin:0;
}

.header-content{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:10px 20px;
}

/* LEFT */

.header-left{
    flex:1;
}

.logo-img{
    height:50px;
}

/* CENTER */

.header-center{
    flex:2;
    text-align:center;
}

.header-center ul{
    list-style:none;
    display:inline-flex;
    gap:30px;
    margin:0;
    padding:0;
}

/* RIGHT */

.header-right{
    flex:1;
    text-align:right;
}

.header-right h1{
    font-size:22px;
    margin:0;
}

.brand-section{
    display:flex;
    align-items:center;
    gap:12px;
}
