/**
 * VibeCharts Design System
 * Version 1.1.0
 * 
 * Themes: minimal, dark, soft
 */

/* ====== RESET ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.navbar{background: #16161f50!important;backdrop-filter: blur(11px)!important;}
.theme-dark .card {
    background: #16161f30!important;
    border: 1px solid #c5c5c526!important;
    backdrop-filter: blur(11px);
    box-shadow: inset 0px 0px 20px 20px #ffffff08 !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====== THEME: MINIMAL ====== */
body.theme-minimal {
    background: #ffffff;
    color: #222222;
    font-size: 13px;
}

.theme-minimal .container,
.theme-minimal .card,
.theme-minimal .panel {
    padding: 12px 15px;
    border-radius: 0;
}

.theme-minimal .btn {
    padding: 8px 16px;
    border-radius: 0;
    font-size: 12px;
}

.theme-minimal input,
.theme-minimal select,
.theme-minimal textarea {
    padding: 8px 12px;
    border-radius: 0;
    font-size: 12px;
}

.theme-minimal .card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.theme-minimal .navbar {
    background: #ffffff;
    border-bottom: 1px solid #dee2e6;
}

.theme-minimal .footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* ====== THEME: DARK ====== */
body.theme-dark {
    background: #0f0f1a;
    color: #e4e4e7;
    font-size: 14px;
}

.theme-dark .container,
.theme-dark .card,
.theme-dark .panel {
    padding: 20px;
    border-radius: 8px;
}

.theme-dark .btn {
    padding: 12px 24px;
    border-radius: 11px;
    font-size: 14px;
}

.theme-dark input,
.theme-dark select,
.theme-dark textarea {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    color: #e4e4e7;
}

.theme-dark .card {
    background: #16161f;
    border: 1px solid #2a2a3e;
}

.theme-dark .navbar {
    background: #16161f;
    border-bottom: 1px solid #2a2a3e;
}

.theme-dark .footer {
    background: #16161f;
    border-top: 1px solid #2a2a3e;
}

/* ====== THEME: SOFT ====== */
body.theme-soft {
    background: #fafafa;
    color: #333333;
    font-size: 13px;
}

.theme-soft .container,
.theme-soft .card,
.theme-soft .panel {
    padding: 18px 21px;
    border-radius: 18px;
}

.theme-soft .btn {
    padding: 14px 28px;
    border-radius: 21px;
    font-size: 13px;
}

.theme-soft input,
.theme-soft select,
.theme-soft textarea {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 13px;
}

.theme-soft .card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.theme-soft .navbar {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.theme-soft .footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

/* ====== COMMON COMPONENTS ====== */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    padding: 0 20px;
}

/* Card */
.card {
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    font-weight: 600;
    margin-bottom: 15px;
}

.card-body {
    padding: 0;
}

/* Button */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    background: #667eea;
    color: #ffffff;
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

/* Form Controls */
input, select, textarea {
    width: 100%;
    border: 1px solid;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col, [class*="col-"] {
    padding: 0 10px;
}

.col-6 { width: 50%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }
.col-8 { width: 66.666%; }
.col-12 { width: 100%; }

/* Header */
.page-header {
    padding: 80px 20px 40px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.7;
}

/* Section */
.section {
    padding: 60px 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Footer */
.footer {
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.2s;
}

.tab:hover {
    opacity: 0.8;
}

.tab.active {
    font-weight: 600;
}

/* Code Block */
.code-block {
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid;
}

th {
    font-weight: 600;
}

/* Utility Classes */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

/* Color Utilities */
.theme-minimal .text-primary,
.theme-soft .text-primary { color: #667eea; }
.theme-dark .text-primary { color: #818cf8; }

.theme-minimal .text-muted,
.theme-soft .text-muted { color: #6c757d; }
.theme-dark .text-muted { color: #71717a; }

.theme-minimal .bg-light,
.theme-soft .bg-light { background: #f8f9fa; }
.theme-dark .bg-light { background: #1a1a2e; }

/* Responsive */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .col-6, .col-4, .col-3, .col-8 {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .tabs {
        font-size: 12px;
    }
    
    .page-title {
        font-size: 28px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}