quantum-ai-v3/static/css/header.css
Claude 8d1149e0af Fix header mobile UI with dropdown navigation
- Add proper header-container with max-width and centering
- Implement mobile hamburger navigation that opens as dropdown
- Keep navigation links on left side with logo on desktop
- Add mobile navigation JavaScript with auto-close functionality
- Improve mobile typography and spacing for 768px and 480px breakpoints
- Position mobile navigation absolutely below header with shadow
- Include header.css in base template

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:33:38 +05:30

301 lines
5.1 KiB
CSS

/* Header Styles for NetCop Hub */
.header {
background: white;
padding: 12px 0;
border-radius: 0;
margin-bottom: 0;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
border-bottom: 1px solid #e5e7eb;
position: relative;
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}
.header-left {
display: flex;
align-items: center;
gap: 40px;
flex: 1;
}
.logo-section {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: inherit;
}
.logo-img {
width: auto;
height: 60px;
border-radius: 0;
object-fit: contain;
}
.logo-text {
display: flex;
flex-direction: column;
gap: 2px;
}
.logo-title {
font-size: 18px;
font-weight: 700;
color: #1e3a8a;
margin: 0;
line-height: 1.1;
letter-spacing: -0.025em;
}
.logo-subtitle {
font-size: 10px;
color: #6b7280;
margin: 0;
line-height: 1.2;
font-weight: 500;
letter-spacing: 0.05em;
}
.header-nav {
display: flex;
gap: 32px;
align-items: center;
}
.nav-link {
text-decoration: none;
color: #6b7280;
font-weight: 500;
font-size: 16px;
padding: 8px 0;
border-radius: 0;
transition: all 0.2s ease;
position: relative;
}
.nav-link:hover {
color: #3b82f6;
}
.nav-link:hover::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: #3b82f6;
}
.user-info {
display: flex;
align-items: center;
gap: 15px;
flex-wrap: wrap;
flex-shrink: 0;
}
.user-welcome {
color: #374151;
font-weight: 500;
margin: 0;
}
.balance {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: white;
padding: 8px 16px;
border-radius: 20px;
font-weight: 600;
font-size: 14px;
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
text-decoration: none;
display: inline-block;
transition: all 0.2s ease;
}
.balance:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
color: white;
}
.auth-links {
display: flex;
gap: 15px;
align-items: center;
}
.auth-links a {
text-decoration: none;
color: #6b7280;
font-weight: 500;
padding: 8px 12px;
border-radius: 6px;
transition: all 0.2s ease;
}
.auth-links a:hover {
color: #3b82f6;
background: rgba(59, 130, 246, 0.05);
}
.auth-links a[href*="logout"] {
color: #ef4444;
}
.auth-links a[href*="logout"]:hover {
color: #dc2626;
background: rgba(239, 68, 68, 0.05);
}
/* Mobile Navigation Toggle */
.mobile-nav-toggle {
display: none;
background: none;
border: none;
font-size: 24px;
color: #6b7280;
cursor: pointer;
padding: 8px;
margin-left: auto;
}
.mobile-nav-toggle:hover {
color: #3b82f6;
}
/* Responsive Design */
@media (max-width: 768px) {
.header-container {
padding: 0 16px;
}
.header-left {
justify-content: space-between;
gap: 16px;
}
.logo-section {
flex-shrink: 0;
}
.mobile-nav-toggle {
display: block;
}
.header-nav {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
flex-direction: column;
gap: 8px;
padding: 16px 24px;
border-top: 1px solid #e5e7eb;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.header-nav.mobile-open {
display: flex;
}
.nav-link {
padding: 12px 16px;
text-align: center;
border-radius: 8px;
background: rgba(59, 130, 246, 0.05);
margin: 2px 0;
}
.user-info {
justify-content: center;
gap: 12px;
width: 100%;
padding-top: 8px;
border-top: 1px solid #e5e7eb;
}
.user-welcome {
font-size: 14px;
white-space: nowrap;
}
.balance {
font-size: 13px;
padding: 6px 12px;
}
.auth-links {
flex-wrap: wrap;
justify-content: center;
gap: 8px;
}
.auth-links a {
padding: 8px 16px;
border-radius: 8px;
background: rgba(107, 114, 128, 0.05);
font-size: 14px;
}
}
@media (max-width: 480px) {
.header-container {
padding: 0 12px;
gap: 12px;
}
.header-left {
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.logo-img {
width: auto;
height: 40px;
}
.logo-title {
font-size: 16px;
}
.user-info {
flex-direction: column;
gap: 8px;
align-items: center;
}
.user-welcome {
font-size: 13px;
text-align: center;
}
.balance {
font-size: 12px;
padding: 5px 10px;
border-radius: 16px;
}
.auth-links {
gap: 6px;
}
.auth-links a {
padding: 6px 12px;
font-size: 13px;
}
}