:root {
--bg: #0b1220;
--panel: #0f172a;
--accent: #2563eb;
--accent-2: #38bdf8;
--text: #e5e7eb;
--muted: #9aa4b2;
--border: #1f2a44;
--success: #22c55e;
--warning: #f59e0b;
--danger: #ef4444;
}

* {
box-sizing: border-box;
}



.logo-icon .logo-img {
width: auto;
height: 80px;
vertical-align: middle;
}



html, body {
margin: 0;
height: 100%;
font-family: 'Inter', system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
background: var(--bg);
color: var(--text);
}

a {
color: var(--accent);
text-decoration: none;
}

.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
}

.navbar {
position: sticky;
top: 0;
z-index: 50;
background: linear-gradient(180deg, rgba(11,18,32,0.9), rgba(11,18,32,0.6));
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--border);
}
.navbar .container {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
}
.logo-icon { font-size: 20px; }
.logo-text { letter-spacing: .5px; }
.nav-links { display: flex; gap: 16px; align-items: center; }


/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-google {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: 10px;
padding: 10px 16px;
font-weight: 600;
border: 1px solid transparent;
cursor: pointer;
transition: .2s all;
}
.btn-large { padding: 14px 22px; font-size: 16px; }
.btn-full { width: 100%; }
.btn-primary {
background: linear-gradient(90deg, var(--accent), var(--accent-2));
color: white;
}
.btn-primary:hover { opacity: .95; }
.btn-secondary {
background: #142042;
border-color: var(--border);
color: var(--text);
}
.btn-outline {
background: transparent;
border-color: var(--border);
color: var(--text);
}
.btn-google {
background: #111827;
border: 1px solid var(--border);
color: #fff;
}

/* Hero */
.hero {
padding: 80px 0;
background: radial-gradient(80% 60% at 50% 0%, rgba(37,99,235,.18), transparent 60%),
radial-gradient(70% 50% at 80% 10%, rgba(56,189,248,.12), transparent 60%);
}
.hero-title {
font-size: 48px;
line-height: 1.1;
margin: 0 0 12px;
}
.gradient-text {
background: linear-gradient(90deg, var(--accent), var(--accent-2));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--muted); max-width: 640px; }
.hero-buttons { display: flex; gap: 12px; margin-top: 18px;}
.hero-stats { display: flex; gap: 24px; margin-top: 28px; }
.stat { background: #0f1933; border: 1px solid var(--border); padding: 12px 16px; border-radius: 12px; }
.stat-number { font-size: 20px; font-weight: 700; }
.stat-label { display: block; color: var(--muted); }


/* Sections / Features */
.section-title { font-size: 28px; margin: 0 0 18px;}
.features { padding: 60px 0; border-top: 1px solid var(--border);}
.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
gap: 16px;
}
.feature-card {
background: var(--panel);
border: 1px solid var(--border);
padding: 18px;
border-radius: 14px;
animation: fadeIn 0.5s;
}
.feature-icon { font-size: 22px; }
.how-it-works { padding: 60px 0; }
.steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
gap: 14px;
}
.step {
background: var(--panel);
border: 1px solid var(--border);
padding: 16px;
border-radius: 14px;
animation: fadeIn 0.6s;
}
.step-number {
width: 28px;
height: 28px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
background: #142042;
border: 1px solid var(--border);
margin-bottom: 8px;
}

/* CTA Section */
.cta {
padding: 56px 0;
border-top: 1px solid var(--border);
text-align: center;
}
.cta .container { display: flex; flex-direction: column; align-items: center; gap: 10px; }


/* Footer */
.footer { border-top:1px solid var(--border); padding: 30px 0; background: rgba(5,9,18,.6);}
.footer-content { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap;}
.footer-links { display: flex; gap: 28px;}
.footer-column { min-width: 140px;}
.footer-column h4 { margin: 0 0 8px;}
.footer-bottom { margin-top: 10px; color: var(--muted);}

/* Animations */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px);}
to { opacity: 1; transform: translateY(0);}
}
@media(max-width: 920px) {
.sidebar { position: fixed; left: -260px; top: 0; bottom: 0;}
.content { margin-left: 0;}
.navbar .container { padding: 0 14px;}
.hero-title { font-size: 38px;}
}

@media (max-width: 768px) {
/* Stack sidebar on top, content below */
.app {
flex-direction: column;
}

.sidebar {
width: 100%;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
border-right: none;
border-bottom: 1px solid var(--border);
gap: 10px;
}

.sidebar-header {
border-bottom: none;
padding-bottom: 0;
}

.sidebar-nav {
flex-direction: row;
flex-wrap: wrap;
gap: 6px;
}

.sidebar-footer {
margin-top: 0;
padding-top: 0;
border-top: none;
}

.content {
padding: 16px 14px;
}

.greeting-weather-container {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}

.card-grid {
grid-template-columns: 1fr;
}

.row {
flex-direction: column;
}

.btn-full {
width: 100%;
}
}

/* Improved Tab/ARIA/Accessibility for new HTML */
[aria-label], [role] {
outline: none;
}

button:focus, a:focus {
outline: 2px solid var(--accent);
}

@media (hover: none) and (pointer: coarse) {
button, a { min-height: 44px; min-width: 44px;}
}

/* Custom UI/UX/Animations for cards & buttons */
.card, .feature-card, .step {
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover, .feature-card:hover, .step:hover {
transform: translateY(-4px) scale(1.01);
box-shadow: 0 4px 24px rgba(49, 95, 173, 0.10);
}

/* Utility classes for full width on mobile */
@media screen and (max-width: 480px) {
.footer, .container { padding-left: 6px; padding-right: 6px;}
.feature-card, .step { padding: 12px; }
}

body.light-mode {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
color: #1a202c;
}

body.light-mode .footer, body.light-mode .feature-card, body.light-mode .step {
background: #fff;
color: #1a202c;
border-color: #e2e8f0;
}



/* Add any custom overrides below if you want */
/* Auth Page Styles */
.auth-container {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}

.auth-box {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 16px;
padding: 32px;
max-width: 440px;
width: 100%;
}

.auth-header {
text-align: center;
margin-bottom: 24px;
}

.auth-header h1 {
margin: 16px 0 8px;
font-size: 28px;
}

.auth-header p {
color: var(--muted);
margin: 0;
}

.auth-tabs {
display: flex;
gap: 8px;
margin-bottom: 24px;
background: var(--bg);
padding: 4px;
border-radius: 10px;
}

.tab-btn {
flex: 1;
padding: 10px;
background: transparent;
border: none;
border-radius: 8px;
color: var(--muted);
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
}

.tab-btn.active {
background: var(--panel);
color: var(--text);
}

.google-signin-button,
.back-to-home {
margin-bottom: 16px;
}

.auth-form {
display: flex;
flex-direction: column;
gap: 16px;
}

.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}

.form-group label {
font-weight: 500;
font-size: 14px;
}

.form-group input {
padding: 12px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
font-size: 14px;
}

.form-group input:focus {
outline: none;
border-color: var(--accent);
}

.form-options {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
}

.checkbox-label {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
}

.forgot-link {
color: var(--accent);
font-size: 14px;
}

.error-message {
color: var(--danger);
font-size: 14px;
text-align: center;
padding: 8px;
border-radius: 6px;
background: rgba(239, 68, 68, 0.1);
display: none;
}

.error-message:not(:empty) {
display: block;
}




/* === Dashboard Layout === */
.app {
min-height: 100vh;
display: flex;
background: var(--bg);
color: var(--text);
}

/* Sidebar */
.sidebar {
width: 260px;
background: #020617;
border-right: 1px solid var(--border);
display: flex;
flex-direction: column;
padding: 20px 16px;
gap: 16px;
}

.sidebar-header {
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
}

.sidebar-nav {
display: flex;
flex-direction: column;
gap: 8px;
margin-top: 12px;
}

.nav-item {
padding: 10px 12px;
border-radius: 10px;
color: var(--muted);
cursor: pointer;
transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
background: #0f172a;
color: var(--text);
}

.nav-item.active {
background: linear-gradient(90deg, var(--accent), var(--accent-2));
color: #fff;
}

.sidebar-footer {
margin-top: auto;
padding-top: 12px;
border-top: 1px solid var(--border);
}

/* Main content */
.content {
flex: 1;
padding: 24px 28px;
max-width: 1100px;
margin: 0 auto;
}

/* Topbar */
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
}

.page-title {
margin: 0;
font-size: 26px;
}

/* Greeting + weather */
.greeting-weather-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
}

.greeting {
font-size: 18px;
font-weight: 500;
}

.weather-widget {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
background: #020617;
border: 1px solid var(--border);
font-size: 14px;
}

/* Tabs / sections */
.tab {
display: none;
}

.tab.active {
display: block;
}

/* Cards and grids */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 16px;
margin-bottom: 18px;
}

.card {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
padding: 16px 18px;
}

.card h3 {
margin-top: 0;
margin-bottom: 10px;
}

/* Form elements in dashboard */
.textarea {
width: 100%;
min-height: 140px;
resize: vertical;
padding: 10px;
border-radius: 10px;
border: 1px solid var(--border);
background: #020617;
color: var(--text);
font-family: inherit;
font-size: 14px;
}

.textarea:focus {
outline: none;
border-color: var(--accent);
}

.upload-row {
display: flex;
align-items: center;
gap: 10px;
}

/* Rows for buttons */
.row {
display: flex;
gap: 10px;
margin-top: 10px;
flex-wrap: wrap;
}

/* Application log */
.log {
background: #020617;
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px;
max-height: 260px;
overflow-y: auto;
font-size: 13px;
}

/* Chat section */
.chat {
display: flex;
flex-direction: column;
gap: 10px;
}

.chat-window {
background: #020617;
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px;
height: 260px;
overflow-y: auto;
}

.chat-input-row {
display: flex;
gap: 10px;
}

.chat-input-row input {
flex: 1;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: #020617;
color: var(--text);
}

.chat-input-row input:focus {
outline: none;
border-color: var(--accent);
}

/* Make buttons in dashboard full-width on small screens */
@media (max-width: 768px) {
.app {
flex-direction: column;
}

.sidebar {
width: 100%;
flex-direction: row;
align-items: center;
justify-content: space-between;
border-right: none;
border-bottom: 1px solid var(--border);
}

.sidebar-nav {
flex-direction: row;
gap: 6px;
}

.content {
padding: 18px 16px;
}

.greeting-weather-container {
flex-direction: column;
align-items: flex-start;
gap: 6px;
}

.row {
flex-direction: column;
}
}

/* Mobile top bar + menu */
.mobile-topbar {
display: none;
}

.mobile-menu {
display: none;
}

/* Mobile layout */
@media (max-width: 768px) {
.sidebar {
display: none; /* hide sidebar on mobile */
}

.mobile-topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, rgba(11,18,32,0.98), rgba(11,18,32,0.9));
position: sticky;
top: 0;
z-index: 40;
}

.mobile-menu-btn {
background: transparent;
border: 1px solid var(--border);
border-radius: 10px;
color: var(--text);
padding: 6px 10px;
font-size: 18px;
cursor: pointer;
}

.mobile-menu {
display: none;
position: sticky;
top: 50px;
z-index: 39;
background: #020617;
border-bottom: 1px solid var(--border);
padding: 8px 10px;
display: none;
flex-direction: column;
gap: 6px;
}

.mobile-menu.open {
display: flex;
}

.mobile-menu-item {
width: 100%;
text-align: left;
padding: 8px 10px;
border-radius: 8px;
background: transparent;
border: none;
color: var(--muted);
font-size: 14px;
cursor: pointer;
}

.mobile-menu-item.active {
background: linear-gradient(90deg, var(--accent), var(--accent-2));
color: #fff;
}

.mobile-menu-item.danger {
color: var(--danger);
}

.content {
padding: 16px 14px;
}

.card-grid {
grid-template-columns: 1fr;
}

.row {
flex-direction: column;
}

.btn-full {
width: 100%;
}
}
