/* ======================
   Header Styles
====================== */
header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 12px rgba(10, 186, 181, 0.14);
    border-bottom: 1px solid rgba(10, 186, 181, 0.16);
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem 0 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    z-index: 101;
    text-decoration: none;
}

.logo-image {
    width: 236px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(10, 186, 181, 0.22));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav {
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: var(--text-main);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 170px;
    background: #ffffff;
    border: 1px solid rgba(10, 186, 181, 0.3);
    border-radius: 10px;
    padding: 0.45rem 0;
    box-shadow: 0 10px 28px rgba(10, 186, 181, 0.14);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.2s ease;
    z-index: 120;
}

.nav-submenu li {
    width: 100%;
}

.nav-submenu a {
    display: block;
    padding: 0.48rem 0.8rem;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text-main);
}

.nav-dropdown:hover .nav-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 101;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    z-index: 101;
}

.header-icons a {
    color: var(--text-main);
    font-size: 1.1rem;
}

.header-icons a:hover,
.logo:hover .logo-image {
    filter: drop-shadow(0 14px 26px rgba(10, 186, 181, 0.3));
    transform: translateY(-1px);
}

/* ======================
   Shared Components
====================== */
.btn {
    background: linear-gradient(135deg, #27d0cc 0%, #0abab5 100%);
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(135deg, #1fbdb9 0%, #089f9a 100%);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(10, 186, 181, 0.1);
    color: var(--secondary-color);
}

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

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

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: #ffffff;
    border: 1px solid #cfe6e6;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.1);
    background-color: #ffffff;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background-color: #ffffff;
    border: 1px solid #cfe6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-input:checked + .custom-checkbox::after {
    content: '\2713';
    color: white;
    font-size: 12px;
}

.checkbox-input {
    display: none;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.product-table th,
.product-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e6f1f1;
}

.product-table th {
    color: var(--secondary-color);
    white-space: nowrap;
}

/* ======================
   Footer Styles
====================== */
footer {
    background-color: #ffffff;
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
    border-top: 1px solid rgba(10, 186, 181, 0.16);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* ======================
   Responsive Layout
====================== */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
        order: 3;
        margin-left: 0.35rem;
        font-size: 1.6rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 0;
        height: 100vh;
        background-color: #ffffff;
        z-index: 100;
        overflow: hidden;
        padding-top: 6rem;
        box-shadow: -2px 0 12px rgba(10, 186, 181, 0.12);
    }

    .nav.active {
        width: 80%;
        max-width: 300px;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .nav-dropdown {
        position: static;
    }

    .nav-submenu {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        min-width: 0;
        margin-top: 0.55rem;
        margin-left: 0.8rem;
        padding: 0.25rem 0;
        border: 0;
        border-left: 2px solid rgba(10, 186, 181, 0.55);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-submenu a {
        padding: 0.3rem 0;
        font-size: 0.92rem;
        color: #4d676c;
    }

    .nav-list a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        border-bottom: 1px solid #e6f1f1;
    }

    .nav-list a::after {
        display: none;
    }

    .nav-list a:hover,
    .nav-list a.active {
        color: var(--secondary-color);
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .product-table {
        font-size: 0.9rem;
    }

    .product-table th,
    .product-table td {
        padding: 0.8rem 0.5rem;
    }

    .header-inner {
        padding: 0 1rem;
        gap: 0.35rem;
    }

    .header-icons {
        order: 2;
        gap: 0.55rem;
        margin-left: auto;
        margin-right: 0;
    }

    .header-icon,
    .header-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .nav-list {
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .logo {
        max-width: calc(100% - 104px);
    }

    .logo-image {
        width: 168px;
    }
}
