/* assets/css/style.css */
:root {
    --primary-color: #0b3d91;
    /* Deep Professional Blue */
    --secondary-color: #f7931e;
    /* Action Orange for buttons */
    --bg-color: #f8f9fa;
    /* Light Gray/White Background */
    --text-main: #333333;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --font-stack: 'Inter', sans-serif;
    --radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #082966;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e07f15;
}

.btn-danger {
    background-color: var(--danger);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.1);
}

/* Card */
.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 20px;
}

/* Layout */
.main-content {
    flex: 1;
    /* Pushes footer down */
}

/* HEADER */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 0;
    font-size: 0.85rem;
}

.top-bar .support-info i {
    margin-right: 5px;
    margin-left: 15px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
}

.nav-container .logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin-left: -50px;
}

.main-nav .nav-links li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
}

.main-nav .nav-links li a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    color: var(--text-main);
    font-size: 1.1rem;
    position: relative;
}

.action-btn:hover {
    color: var(--primary-color);
}

.cart-btn .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: bold;
}

/* FOOTER */
.main-footer {
    background: var(--white);
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: var(--primary-color);
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.contact-info li i {
    width: 20px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #eef1f6;
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    font-size: 0.9rem;
}

/* Utility layout blocks */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e5ab3 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border-radius: var(--radius);
    padding: 10px 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    color: var(--text-main);
    display: block;
    padding: 8px 15px;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background-color: #f1f1f1;
}

/* Responsive */
.mobile-menu-btn {
    display: none !important;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: block !important;
        order: 2;
    }

    .header-actions {
        order: 1;
        margin-right: 15px;
    }

    .desktop-only {
        display: none !important;
    }

    .main-nav {
        width: 100%;
        display: none;
        /* Hidden by default entirely, we will show it dynamically */
        order: 3;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }

    .main-nav.active {
        display: block;
        animation: slideDown 0.3s ease forwards;
    }

    .main-nav .nav-links {
        margin-left: 0;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
    }

    .main-nav .nav-links li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f1f1f1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}