/* ============================================
   ClauseQuill Base Styles
   Navigation, Footer, Body, and shared layout
   ============================================ */

/* Body and Layout */
body {
    padding-top: 80px;
    background: #f8f9fa;
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
}

/* Navbar Brand */
.navbar-brand img {
    height: 40px;
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 35px;
    }
}

/* Hero Section (legacy) */
.hero {
    text-align: center;
    padding: 80px 20px;
}

/* Footer */
footer {
    margin-top: 120px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    color: #212529;
}

footer .footer-links {
    margin-bottom: 10px;
}

footer .footer-links a {
    color: #495057;
    text-decoration: none;
    font-size: 14px;
}

footer .footer-links a:hover {
    color: #212529;
    text-decoration: underline;
}

footer img {
    height: 80px;
    margin-bottom: 20px;
}

/* ============================================
   Navigation Styles
   ============================================ */
.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: #495057 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.25rem;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff !important;
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: #007bff;
    color: white !important;
}

.nav-link.active:hover {
    background-color: #0056b3;
    color: white !important;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.user-dropdown-toggle:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    transform: translateX(4px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ============================================
   Responsive Navigation
   ============================================ */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-link {
        margin: 0.25rem 0;
        width: 100%;
    }
    
    .user-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid rgba(0,0,0,0.05);
        margin-top: 0.5rem;
    }
}
