/* techy-theme.css - Unified Dark Tech Theme for TrucastAI */

/* ============ Techy Theme CSS Variables ============ */
:root {
    /* Primary Colors - Teal/Cyan gradient */
    --techy-primary: #0d9488;
    --techy-primary-dark: #0f766e;
    --techy-primary-light: #14b8a6;
    --techy-primary-glow: rgba(20, 184, 166, 0.4);

    /* Accent Colors */
    --techy-accent: #06b6d4;
    --techy-accent-glow: rgba(6, 182, 212, 0.3);

    /* Background Colors */
    --techy-bg-void: #0a0a0f;
    --techy-bg-dark: #0a0a0f;
    --techy-bg-card: #12121a;
    --techy-bg-card-hover: #1a1a24;
    --techy-bg-elevated: #1e1e2a;

    /* Text Colors */
    --techy-text-primary: #f1f5f9;
    --techy-text-secondary: #94a3b8;
    --techy-text-muted: #64748b;

    /* Border Colors */
    --techy-border-dark: rgba(255, 255, 255, 0.08);
    --techy-border-glow: rgba(20, 184, 166, 0.3);
    --techy-border-strong: rgba(255, 255, 255, 0.12);

    /* Gradients */
    --techy-gradient-primary: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
    --techy-gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #0f0f18 100%);
    --techy-gradient-card: linear-gradient(145deg, #12121a 0%, #1a1a24 100%);

    /* Shadows & Glows */
    --techy-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
    --techy-shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.5);
    --techy-glow-accent: 0 0 20px rgba(20, 184, 166, 0.4), 0 0 40px rgba(20, 184, 166, 0.15);
    --techy-glow-subtle: 0 0 15px rgba(20, 184, 166, 0.2);
    --techy-card-glow: 0 0 20px rgba(20, 184, 166, 0.4);
}

/* ============ Background Grid Effect ============ */
.techy-bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* ============ Glow Effects ============ */
.techy-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.techy-glow-1 {
    top: -200px;
    right: -200px;
    background: var(--techy-primary);
}

.techy-glow-2 {
    bottom: -200px;
    left: -200px;
    background: var(--techy-accent);
}

/* For pages with sidebar - position glow elements */
.techy-glow-1.sidebar-offset {
    right: -100px;
}

.techy-glow-2.sidebar-offset {
    left: 140px;
}

/* ============ Glass Card Styles ============ */
.techy-card {
    background: var(--techy-gradient-card);
    border: 1px solid var(--techy-border-dark);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.techy-card:hover {
    border-color: var(--techy-border-glow);
    transform: translateY(-2px);
    box-shadow: var(--techy-shadow-lg);
}

.techy-card-glow {
    box-shadow: var(--techy-card-glow);
}

/* ============ Glow Buttons ============ */
.techy-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.techy-btn-primary {
    background: var(--techy-gradient-primary);
    color: white;
    box-shadow: 0 0 20px var(--techy-primary-glow);
}

.techy-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--techy-primary-glow);
}

.techy-btn-outline {
    border: 1px solid var(--techy-border-glow);
    color: var(--techy-text-primary);
    background: transparent;
}

.techy-btn-outline:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--techy-primary-light);
}

.techy-btn-ghost {
    color: var(--techy-text-secondary);
    background: transparent;
}

.techy-btn-ghost:hover {
    color: var(--techy-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ============ Enhanced Sidebar Styles ============ */
[data-theme="dark"] .sidebar.techy-sidebar {
    background: linear-gradient(180deg, var(--techy-bg-card) 0%, var(--techy-bg-elevated) 100%);
    border-right: 1px solid var(--techy-border-dark);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .sidebar.techy-sidebar .sidebar-logo svg {
    filter: drop-shadow(0 0 8px var(--techy-primary-glow));
}

[data-theme="dark"] .sidebar.techy-sidebar .sidebar-item:hover {
    background: var(--techy-bg-card-hover);
    transform: translateX(4px);
}

[data-theme="dark"] .sidebar.techy-sidebar .sidebar-item.active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15) 0%, rgba(94, 234, 212, 0.1) 100%);
    border-left: 3px solid var(--techy-primary-light);
    box-shadow: var(--techy-glow-subtle);
}

/* ============ Enhanced Main Content ============ */
[data-theme="dark"] .main-content.techy-main {
    background: var(--techy-bg-void);
    position: relative;
    z-index: 1;
}

/* ============ Page Header Glow ============ */
[data-theme="dark"] .page-header.techy-header {
    background: linear-gradient(135deg, var(--techy-bg-card) 0%, var(--techy-bg-elevated) 100%) !important;
    border-bottom: 1px solid var(--techy-border-dark) !important;
}

/* ============ Stat Cards with Glow ============ */
[data-theme="dark"] .stat-card.techy-stat,
[data-theme="dark"] .overview-card.techy-stat {
    background: var(--techy-gradient-card) !important;
    border: 1px solid var(--techy-border-dark);
    transition: all 0.3s ease;
}

[data-theme="dark"] .stat-card.techy-stat:hover,
[data-theme="dark"] .overview-card.techy-stat:hover {
    border-color: var(--techy-border-glow);
    box-shadow: var(--techy-glow-subtle);
}

/* ============ Chart Cards ============ */
[data-theme="dark"] .chart-card.techy-chart,
[data-theme="dark"] .chart-section.techy-chart {
    background: var(--techy-gradient-card) !important;
    border: 1px solid var(--techy-border-dark) !important;
}

/* ============ Data Tables ============ */
[data-theme="dark"] .techy-table {
    background: var(--techy-bg-card);
    border: 1px solid var(--techy-border-dark);
    border-radius: 12px;
    overflow: hidden;
}

[data-theme="dark"] .techy-table th {
    background: var(--techy-bg-void);
    color: var(--techy-text-muted);
    border-color: var(--techy-border-dark);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .techy-table td {
    border-color: var(--techy-border-dark);
    color: var(--techy-text-primary);
}

[data-theme="dark"] .techy-table tr:hover td {
    background: rgba(20, 184, 166, 0.08);
}

/* ============ Form Inputs ============ */
[data-theme="dark"] .techy-input {
    background: var(--techy-bg-void);
    border: 1px solid var(--techy-border-dark);
    color: var(--techy-text-primary);
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

[data-theme="dark"] .techy-input:focus {
    border-color: var(--techy-primary-light);
    box-shadow: 0 0 0 3px var(--techy-primary-glow);
    outline: none;
}

[data-theme="dark"] .techy-input::placeholder {
    color: var(--techy-text-muted);
}

/* ============ Setup Wizard Progress ============ */
.techy-progress-dot {
    transition: all 0.3s ease;
}

.techy-progress-dot.completed {
    background: var(--techy-gradient-primary);
    box-shadow: 0 0 15px var(--techy-primary-glow);
}

.techy-progress-dot.active {
    background: var(--techy-gradient-primary);
    box-shadow: 0 0 20px var(--techy-primary-glow);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px var(--techy-primary-glow);
    }
    50% {
        box-shadow: 0 0 25px var(--techy-primary-glow);
    }
}

/* ============ Badges & Tags ============ */
.techy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid var(--techy-border-glow);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--techy-primary-light);
}

/* ============ Calendar Day Cells ============ */
[data-theme="dark"] .calendar-cell.techy-cell {
    background: var(--techy-bg-card) !important;
    border-color: var(--techy-border-dark) !important;
    transition: all 0.2s ease;
}

[data-theme="dark"] .calendar-cell.techy-cell:hover {
    background: var(--techy-bg-card-hover) !important;
    border-color: var(--techy-border-glow) !important;
}

[data-theme="dark"] .calendar-cell.techy-cell.today {
    background: rgba(20, 184, 166, 0.15) !important;
    border-color: var(--techy-primary-light) !important;
    box-shadow: var(--techy-glow-subtle);
}

/* ============ Modals ============ */
[data-theme="dark"] .modal.techy-modal {
    background: var(--techy-bg-elevated);
    border: 1px solid var(--techy-border-strong);
    box-shadow: var(--techy-shadow-xl), 0 0 60px rgba(0, 0, 0, 0.5);
}

/* ============ Dropdowns ============ */
[data-theme="dark"] .techy-dropdown {
    background: var(--techy-bg-elevated);
    border: 1px solid var(--techy-border-strong);
    border-radius: 12px;
    box-shadow: var(--techy-shadow-lg);
}

[data-theme="dark"] .techy-dropdown-item:hover {
    background: var(--techy-bg-card-hover);
}

/* ============ Action Cards ============ */
[data-theme="dark"] .action-card.techy-action {
    background: var(--techy-bg-card);
    border: 1px solid var(--techy-border-dark);
    transition: all 0.25s ease;
}

[data-theme="dark"] .action-card.techy-action:hover {
    border-color: var(--techy-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--techy-shadow-lg), var(--techy-glow-subtle);
}

/* ============ Upload Area ============ */
[data-theme="dark"] .upload-area.techy-upload,
[data-theme="dark"] .dropzone.techy-upload {
    background: var(--techy-bg-card) !important;
    border: 2px dashed var(--techy-border-strong) !important;
    transition: all 0.25s ease;
}

[data-theme="dark"] .upload-area.techy-upload:hover,
[data-theme="dark"] .dropzone.techy-upload:hover,
[data-theme="dark"] .upload-area.techy-upload.dragover,
[data-theme="dark"] .dropzone.techy-upload.dragover {
    border-color: var(--techy-primary-light) !important;
    background: rgba(20, 184, 166, 0.1) !important;
    box-shadow: var(--techy-glow-accent);
}

/* ============ AI Insights Section ============ */
[data-theme="dark"] .ai-insights-section.techy-ai {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: var(--techy-glow-subtle);
}

/* ============ Pricing Cards ============ */
[data-theme="dark"] .pricing-card.techy-pricing {
    background: var(--techy-gradient-card);
    border: 1px solid var(--techy-border-dark);
    transition: all 0.3s ease;
}

[data-theme="dark"] .pricing-card.techy-pricing:hover {
    border-color: var(--techy-border-glow);
    transform: translateY(-4px);
    box-shadow: var(--techy-shadow-lg);
}

[data-theme="dark"] .pricing-card.techy-pricing.featured {
    border-color: var(--techy-primary-light);
    box-shadow: var(--techy-card-glow);
}

/* ============ Login/Auth Cards ============ */
[data-theme="dark"] .login-card.techy-auth,
[data-theme="dark"] .auth-card.techy-auth {
    background: var(--techy-gradient-card);
    border: 1px solid var(--techy-border-dark);
    box-shadow: var(--techy-shadow-xl);
}

/* ============ Setup Form Cards ============ */
[data-theme="dark"] .setup-form.techy-setup {
    background: var(--techy-gradient-card);
    border: 1px solid var(--techy-border-dark);
    box-shadow: var(--techy-shadow-lg);
}

/* ============ Gradient Text ============ */
.techy-gradient-text {
    background: var(--techy-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ Icon Glow ============ */
.techy-icon-glow {
    filter: drop-shadow(0 0 8px var(--techy-primary-glow));
}

/* ============ Section Headers ============ */
.techy-section-header h2 {
    color: var(--techy-text-primary);
    font-weight: 700;
}

.techy-section-header p {
    color: var(--techy-text-secondary);
}

/* ============ Empty States ============ */
[data-theme="dark"] .empty-state.techy-empty {
    color: var(--techy-text-secondary);
}

[data-theme="dark"] .empty-state.techy-empty svg {
    color: var(--techy-text-muted);
}

/* ============ Scrollbar Theming ============ */
[data-theme="dark"] .techy-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] .techy-scrollbar::-webkit-scrollbar-track {
    background: var(--techy-bg-card);
}

[data-theme="dark"] .techy-scrollbar::-webkit-scrollbar-thumb {
    background: var(--techy-bg-elevated);
    border-radius: 4px;
}

[data-theme="dark"] .techy-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--techy-text-muted);
}

/* ============ Responsive Adjustments ============ */
@media (max-width: 768px) {
    .techy-glow {
        width: 400px;
        height: 400px;
    }

    .techy-glow-1 {
        top: -150px;
        right: -150px;
    }

    .techy-glow-2 {
        bottom: -150px;
        left: -150px;
    }
}

/* ============ Utility Classes ============ */
.techy-z-bg { z-index: 0; }
.techy-z-content { z-index: 1; }
.techy-z-elevated { z-index: 10; }
.techy-z-modal { z-index: 100; }

.techy-transition { transition: all 0.2s ease; }
.techy-transition-slow { transition: all 0.3s ease; }
