/* Frontend Layout Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar {
    background: white !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    transition: box-shadow 0.3s ease;
}

.navbar.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.navbar-brand {
    font-weight: 700;
    color: #1a202c !important;
    font-size: 1.375rem;
    transition: color 0.2s ease;
    letter-spacing: -0.3px;
}

.navbar-brand:hover {
    color: #2d3748 !important;
}

.navbar-brand i {
    color: #667eea;
    margin-right: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
    font-size: 0.9375rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: #667eea;
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: #667eea !important;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: #667eea !important;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link i {
    margin-right: 0.25rem;
    font-size: 0.875rem;
}

/* Cart Badge */
.nav-link .badge {
    font-size: 0.625rem;
    padding: 0.2rem 0.4rem;
    font-weight: 600;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 0.875rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4a5568;
}

.dropdown-item i {
    color: #718096;
    width: 18px;
    margin-right: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f7fafc;
    color: #667eea;
}

.dropdown-item:hover i {
    color: #667eea;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e2e8f0;
}

/* Register Button in Navbar */
.navbar .btn-primary {
    background: #667eea;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.navbar .btn-primary:hover {
    background: #5568d3;
}

/* Mobile Toggle */
.navbar-toggler {
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.footer-text {
    color: #bdc3c7;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    font-size: 1.125rem;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.facebook:hover {
    background: #2d4373;
    transform: translateY(-3px);
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.youtube:hover {
    background: #cc0000;
    transform: translateY(-3px);
}

.social-link.tiktok {
    background: #000000;
}

.social-link.tiktok:hover {
    background: #333333;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    color: #bdc3c7;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.footer-contact i {
    color: #667eea;
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1rem;
}

.footer-bottom {
    text-align: center;
    color: #95a5a6;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.625rem 0.5rem !important;
    }

    .nav-link::after {
        display: none;
    }

    .navbar .btn-primary {
        width: 100%;
        margin-top: 0.75rem;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.125rem;
    }
}

/* Logo Styles */
.navbar-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 35px;
    }

    .footer-logo {
        height: 40px;
    }
}
