quantum-ai-v2/static/css/base.css
Claude ce332736e5 Fix button visibility issues and improve UI consistency
- Fix secondary buttons with white background/border invisibility
- Improve disabled button states with proper contrast ratios
- Update form element borders for better visibility
- Establish unified color system with CSS variables
- Replace 11 random gradient classes with 4 professional ones
- Fix authentication page styling and button definitions
- Ensure accessibility compliance with visible interactive elements

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 02:47:12 +05:30

520 lines
10 KiB
CSS

/* Base Styles for NetCop Hub */
/* Unified Color System */
:root {
/* Primary Colors */
--primary-blue: #3b82f6;
--primary-dark: #1d4ed8;
--primary-light: #60a5fa;
/* Secondary Colors */
--success-green: #10b981;
--success-dark: #059669;
--warning-orange: #f59e0b;
--error-red: #ef4444;
/* Neutral Colors */
--text-primary: #1f2937;
--text-secondary: #6b7280;
--text-muted: #9ca3af;
--border-light: #e5e7eb; /* For subtle dividers */
--border-medium: #9ca3af; /* For form elements and visible borders */
--border-strong: #6b7280; /* For interactive elements that need clear definition */
--background-page: #f8fafc;
--background-card: #ffffff;
--background-light: #f9fafb;
--background-subtle: #f3f4f6;
/* Gradients */
--gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
--gradient-success: linear-gradient(135deg, var(--success-green) 0%, var(--success-dark) 100%);
--gradient-hero: linear-gradient(135deg, #f6f8ff 0%, #e8f0fe 50%, #f0f7ff 100%);
/* Professional Avatar Gradients (Limited Set) */
--gradient-blue: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
--gradient-green: linear-gradient(135deg, var(--success-green) 0%, var(--success-dark) 100%);
--gradient-slate: linear-gradient(135deg, #64748b 0%, #475569 100%);
--gradient-neutral: linear-gradient(135deg, #6b7280 0%, #374151 100%);
}
body {
font-family: 'Inter', Arial, sans-serif;
margin: 0;
padding: 0;
background-color: var(--background-page);
overflow-x: hidden;
box-sizing: border-box;
}
* {
box-sizing: border-box;
}
.header {
background: var(--background-card);
border-bottom: 1px solid var(--border-light);
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: var(--text-secondary);
font-weight: 500;
font-size: 16px;
padding: 8px 12px;
border-radius: 6px;
transition: all 0.2s ease;
white-space: nowrap;
}
.nav-link:hover {
color: var(--primary-blue);
background: rgba(59, 130, 246, 0.05);
}
.nav-link.active {
color: var(--primary-blue);
background: rgba(59, 130, 246, 0.1);
font-weight: 600;
}
.user-info {
display: flex;
align-items: center;
gap: 16px;
}
.user-welcome {
color: var(--text-primary);
font-weight: 500;
margin: 0;
}
.balance {
background: var(--gradient-success);
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: var(--text-secondary);
font-weight: 500;
padding: 8px 12px;
border-radius: 6px;
transition: all 0.2s ease;
}
.auth-links a:hover {
color: var(--primary-blue);
background: rgba(59, 130, 246, 0.05);
}
/* More specific selector for auth links active state */
.header .auth-links a.active {
color: var(--primary-blue) !important;
background: rgba(59, 130, 246, 0.1) !important;
font-weight: 600 !important;
}
/* Fallback with higher specificity */
.header-container .auth-links a.active {
color: var(--primary-blue) !important;
background: rgba(59, 130, 246, 0.1) !important;
font-weight: 600 !important;
}
.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: 1200px;
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: var(--text-muted);
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: var(--text-muted);
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: var(--text-secondary);
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: var(--text-muted);
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: var(--text-primary);
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: var(--text-primary);
}
.modal-text {
color: var(--text-secondary);
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);
}
}