/* ===== PARTENERO DESIGN SYSTEM ===== */
/* Professional corporate — warm neutrals + navy blue accent */

:root {
    /* Primary Palette - Premium deep navy */
    --primary: hsl(217, 56%, 23%);
    --primary-light: hsl(217, 50%, 35%);
    --primary-lighter: hsl(217, 40%, 94%);
    --primary-dark: hsl(217, 60%, 15%);

    /* Accent - Vibrant warm sunset orange */
    --accent: hsl(28, 90%, 53%);
    --accent-light: hsl(28, 90%, 65%);
    --accent-lighter: hsl(28, 90%, 96%);
    --accent-dark: hsl(28, 100%, 40%);

    /* Success / Error / Warning */
    --success: hsl(145, 63%, 42%);
    --success-light: hsl(145, 60%, 96%);
    --error: hsl(5, 79%, 57%);
    --error-light: hsl(5, 80%, 96%);
    --warning: hsl(43, 96%, 50%);
    --warning-light: hsl(43, 90%, 96%);
    --info: hsl(200, 78%, 53%);
    --info-light: hsl(200, 70%, 96%);

    /* Neutrals */
    --bg-app: hsl(210, 15%, 85%);
    --bg-sidebar: hsl(217, 33%, 12%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-input: hsl(210, 20%, 98%);
    --bg-hover: hsl(210, 16%, 93%);
    --bg-selected: hsl(217, 40%, 94%);

    /* Text */
    --text-primary: hsl(217, 30%, 15%);
    --text-secondary: hsl(217, 16%, 45%);
    --text-muted: hsl(217, 12%, 65%);
    --text-inverse: hsl(0, 0%, 100%);
    --text-sidebar: hsl(217, 15%, 75%);
    --text-sidebar-active: hsl(0, 0%, 100%);

    /* Borders */
    --border: hsl(217, 20%, 90%);
    --border-light: hsl(217, 20%, 94%);
    --border-focus: hsl(217, 56%, 23%);

    /* Premium Glassmorphic Shadows & Blurs */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

    /* Geometry */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Sizing */
    --sidebar-width: 230px;
    --titlebar-height: 40px;

    /* Smooth Transitions */
    --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 380ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-app);
    overflow: hidden;
    user-select: text;
    -webkit-font-smoothing: antialiased;
}

/* ===== CUSTOM TITLEBAR ===== */
#titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--titlebar-height);
    background: var(--primary-dark);
    color: var(--text-inverse);
    -webkit-app-region: drag;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    user-select: none;
}

.titlebar-drag {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 12px;
    height: 100%;
}

.titlebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.titlebar-controls {
    display: flex;
    -webkit-app-region: no-drag;
    height: 100%;
}

.titlebar-btn {
    background: none;
    border: none;
    color: var(--text-inverse);
    width: 46px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.titlebar-btn:hover { background: rgba(255,255,255,0.1); }
.titlebar-btn.close:hover { background: #e74c3c; }

/* ===== APP LAYOUT ===== */
#app-container {
    display: flex;
    height: calc(100vh - var(--titlebar-height));
    margin-top: var(--titlebar-height);
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex-shrink: 0;
    user-select: none;
}

.sidebar-section { padding: 10px 12px 4px; }
.sidebar-section:first-child { padding-top: 14px; }

.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 0 12px 8px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: pointer;
    margin-bottom: 2px;
    position: relative;
}

.nav-item svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Color accents for sidebar icons to make it look professional */
.nav-item[data-page="dashboard"] svg { color: #60a5fa; }
.nav-item[data-page="account"] svg { color: #c084fc; }
.nav-item[data-page="license"] svg { color: #fbbf24; }
.nav-item[data-page="credits"] svg { color: #34d399; }
.nav-item[data-page="orders"] svg { color: #818cf8; }
.nav-item[data-page="wizard"] svg { color: #fb923c; }
.nav-item[data-page="profiles"] svg { color: #2dd4bf; }
.nav-item[data-page="campaigns"] svg { color: #f472b6; }
.nav-item[data-page="finder"] svg { color: #22d3ee; }
.nav-item[data-page="proxies"] svg { color: #a3e635; }
.nav-item[data-page="captcha"] svg { color: #f87171; }
.nav-item[data-page="smtp-settings"] svg { color: #facc15; }
.nav-item[data-page="ai-settings"] svg { color: #c084fc; }
.nav-item[data-page="help"] svg { color: #94a3b8; }

.nav-item:hover {
    color: var(--text-sidebar-active);
    background: rgba(255,255,255,0.07);
}

.nav-item:hover svg {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active {
    color: var(--text-sidebar-active);
    background: rgba(255,255,255,0.12);
}

.nav-item.active svg {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 3px;
    height: 24px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
}

.nav-item-support {
    color: #4ade80 !important;
    border: 1px solid rgba(74, 222, 128, 0.25);
    background: rgba(74, 222, 128, 0.04);
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.nav-item-support svg {
    color: #4ade80 !important;
}

.nav-item-support:hover {
    background: rgba(74, 222, 128, 0.12) !important;
    border-color: rgba(74, 222, 128, 0.6) !important;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.1);
}

.nav-item-support.active {
    background: rgba(74, 222, 128, 0.18) !important;
    border-color: #4ade80 !important;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-version {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* ===== MAIN CONTENT ===== */
#content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    background: var(--bg-app);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== SELECTION ===== */
::selection { background: #3b82f6 !important; color: #ffffff !important; }
::-moz-selection { background: #3b82f6 !important; color: #ffffff !important; }
input::selection, textarea::selection, select::selection { background: #3b82f6 !important; color: #ffffff !important; }
input::-moz-selection, textarea::-moz-selection, select::-moz-selection { background: #3b82f6 !important; color: #ffffff !important; }

