/* 7s Electronic Audit Layout Styles */

:root {
    --primary-blue: #0d6efd;
    --dark-blue: #0a58ca;
    --light-gray: #f8f9fa;
    --border-gray: #dee2e6;
}

body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid var(--border-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand::before {
    content: "\f13e";
    font-family: "Bootstrap Icons";
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 500;
    color: #495057 !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

/* Auth Buttons */
.navbar-auth {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-login:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-register {
    background-color: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-register:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    text-decoration: none;
}

/* User Dropdown */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.user-menu:hover {
    text-decoration: none;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    padding-left: 1.4rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 2px solid var(--border-gray);
    padding: 2rem 0;
    margin-top: 3rem;
    color: #6c757d;
}

footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.5rem 0 !important;
        margin: 0.25rem 0 !important;
    }

    .navbar-auth {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .btn-login, .btn-register {
        width: 100%;
        justify-content: center;
    }
}
