quantum-ai-v3/static/css/base.css
Claude f2590853ef Implement shared footer and improve header design
- Convert inline CSS to external base.css for better maintainability
- Add comprehensive footer with company info, navigation, and privacy modal
- Update header and footer logos to use logo.png with consistent 60px height
- Add active page highlighting in header navigation
- Fix horizontal scrollbar issues with proper CSS box-sizing
- Update marketplace template to extend base template for consistent layout
- Add responsive design for mobile devices in footer

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 03:24:11 +05:30

468 lines
8.0 KiB
CSS

/* Base Styles for NetCop Hub */
body {
font-family: 'Inter', Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f8fafc;
overflow-x: hidden;
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
.header {
background: white;
border-bottom: 1px solid #e5e7eb;
width: 100%;
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 15px 20px;
display: flex;
align-items: center;
justify-content: space-between;
}
.header-left {
display: flex;
align-items: center;
}
.logo-section {
display: flex;
align-items: center;
text-decoration: none;
margin-right: 30px;
}
.logo-img {
width: auto;
height: 60px;
object-fit: contain;
}
.header-nav {
display: flex;
gap: 24px;
align-items: center;
}
.nav-link {
text-decoration: none;
color: #6b7280;
font-weight: 500;
font-size: 16px;
padding: 8px 12px;
border-radius: 6px;
transition: all 0.2s ease;
white-space: nowrap;
}
.nav-link:hover {
color: #3b82f6;
background: rgba(59, 130, 246, 0.05);
}
.nav-link.active {
color: #3b82f6;
background: rgba(59, 130, 246, 0.1);
font-weight: 600;
}
.user-info {
display: flex;
align-items: center;
gap: 16px;
}
.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;
text-decoration: none;
transition: transform 0.2s ease;
}
.balance:hover {
transform: translateY(-1px);
color: white;
}
.auth-links {
display: flex;
gap: 15px;
}
.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);
}
.main-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Footer Styles */
.footer {
padding: clamp(30px, 5vw, 40px) clamp(16px, 4vw, 24px) clamp(20px, 3vw, 30px);
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
margin: 0;
width: 100%;
position: relative;
overflow-x: hidden;
box-sizing: border-box;
}
.footer-container {
max-width: 1280px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
padding: 0 clamp(16px, 4vw, 24px);
}
.footer-main {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: clamp(24px, 6vw, 64px);
margin-bottom: clamp(16px, 4vw, 24px);
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
}
.footer-company {
flex: 1;
min-width: 280px;
max-width: 100%;
box-sizing: border-box;
}
.footer-logo {
width: auto;
height: 60px;
display: flex;
align-items: center;
justify-content: flex-start;
margin-bottom: clamp(12px, 3vw, 16px);
}
.footer-logo-img {
width: auto;
height: 60px;
object-fit: contain;
border-radius: 8px;
filter: brightness(0) invert(1);
}
.footer-description {
color: #9ca3af;
font-size: clamp(12px, 3vw, 14px);
line-height: 1.6;
margin: 0 0 clamp(8px, 2vw, 12px) 0;
}
.footer-contact {
display: flex;
flex-direction: column;
gap: clamp(4px, 1vw, 8px);
}
.footer-contact-item {
color: #e5e7eb;
font-size: clamp(10px, 2.5vw, 12px);
text-decoration: none;
transition: color 0.2s ease;
}
.footer-contact-item:hover {
color: #40E0D0;
}
.footer-nav {
display: flex;
gap: clamp(24px, 6vw, 64px);
align-items: flex-start;
flex-wrap: wrap;
max-width: 100%;
box-sizing: border-box;
}
.footer-nav-section {
text-align: right;
}
.footer-nav-title {
font-size: clamp(14px, 3.5vw, 18px);
font-weight: 600;
color: white;
margin-bottom: clamp(8px, 2vw, 12px);
margin: 0 0 clamp(8px, 2vw, 12px) 0;
}
.footer-nav-links {
display: flex;
flex-direction: column;
gap: clamp(4px, 1vw, 8px);
}
.footer-nav-link {
color: #9ca3af;
text-decoration: none;
font-size: clamp(10px, 2.5vw, 12px);
transition: all 0.2s ease;
}
.footer-nav-link:hover {
color: #40E0D0;
transform: translateX(-2px);
}
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid rgba(148, 163, 184, 0.2);
padding-top: clamp(16px, 4vw, 24px);
flex-wrap: wrap;
gap: clamp(12px, 3vw, 16px);
width: 100%;
box-sizing: border-box;
}
.footer-copyright {
color: #6b7280;
margin: 0;
font-size: clamp(10px, 2.5vw, 12px);
}
.footer-legal {
display: flex;
gap: clamp(16px, 4vw, 24px);
align-items: center;
flex-wrap: wrap;
}
.footer-legal-link {
color: #9ca3af;
text-decoration: none;
font-size: clamp(10px, 2.5vw, 12px);
transition: color 0.2s ease;
cursor: pointer;
background: none;
border: none;
padding: 0;
}
.footer-legal-link:hover {
color: #40E0D0;
}
/* Privacy Modal Styles */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
visibility: hidden;
transition: all 0.2s ease;
}
.modal-overlay.active {
opacity: 1;
visibility: visible;
}
.modal-content {
background: white;
border-radius: 16px;
padding: clamp(20px, 5vw, 32px);
width: 90%;
max-width: 600px;
max-height: 80vh;
overflow: auto;
position: relative;
transform: scale(0.98);
transition: transform 0.2s ease;
}
.modal-overlay.active .modal-content {
transform: scale(1);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: clamp(16px, 4vw, 20px);
}
.modal-title {
font-size: clamp(18px, 4.5vw, 24px);
font-weight: 600;
color: #1f2937;
margin: 0;
}
.modal-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #6b7280;
padding: 4px;
transition: color 0.2s ease;
}
.modal-close:hover {
color: #1f2937;
}
.modal-text {
color: #6b7280;
line-height: 1.6;
font-size: clamp(14px, 3.5vw, 16px);
}
/* Responsive Design */
@media (max-width: 768px) {
.header-container {
padding: 12px 16px;
}
.logo-section {
margin-right: 1.5rem;
}
.header-nav {
gap: 1rem;
}
.nav-link {
font-size: 14px;
padding: 0.4rem 0;
}
.logo-img {
height: 60px;
}
.user-info {
gap: 0.75rem;
}
.auth-links {
gap: 0.5rem;
}
.user-welcome {
display: none;
}
/* Footer responsive */
.footer-main {
flex-direction: column;
gap: clamp(20px, 5vw, 32px);
}
.footer-company {
min-width: auto;
width: 100%;
}
.footer-nav {
justify-content: space-between;
width: 100%;
gap: clamp(16px, 4vw, 32px);
}
.footer-nav-section {
text-align: left;
flex: 1;
}
.footer-bottom {
flex-direction: column;
text-align: center;
gap: clamp(8px, 2vw, 12px);
}
.footer-legal {
justify-content: center;
gap: clamp(12px, 3vw, 16px);
}
}
@media (max-width: 480px) {
.header-container {
padding: 8px 12px;
}
.logo-section {
margin-right: 1rem;
}
.header-nav {
gap: 0.75rem;
}
.nav-link {
padding: 0.3rem 0;
font-size: 13px;
}
.logo-img {
height: 60px;
}
.user-info {
gap: 0.5rem;
}
/* Footer mobile responsive */
.footer-nav {
flex-direction: column;
gap: clamp(16px, 4vw, 24px);
}
.footer-nav-section {
width: 100%;
}
.footer-legal {
flex-direction: column;
gap: clamp(8px, 2vw, 12px);
}
}