/* ==========================================================================
   PROJEKTAI ŽSC - DIZAINO SISTEMA IR STILIAI
   ========================================================================== */

:root {
    /* Pagrindinė spalvų paletė */
    --brand-primary: #4f46e5;
    --brand-primary-hover: #4338ca;
    --brand-primary-light: #eef2ff;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --brand-gradient-dark: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    --brand-accent: #06b6d4;

    /* Statusų spalvos */
    --status-naujas-bg: #eff6ff;
    --status-naujas-text: #1d4ed8;
    --status-naujas-border: #bfdbfe;
    --status-naujas-dot: #3b82f6;

    --status-vykdomas-bg: #ecfdf5;
    --status-vykdomas-text: #047857;
    --status-vykdomas-border: #a7f3d0;
    --status-vykdomas-dot: #10b981;

    --status-atidetas-bg: #fffbeb;
    --status-atidetas-text: #b45309;
    --status-atidetas-border: #fde68a;
    --status-atidetas-dot: #f59e0b;

    --status-uzbaigtas-bg: #f5f3ff;
    --status-uzbaigtas-text: #6d28d9;
    --status-uzbaigtas-border: #ddd6fe;
    --status-uzbaigtas-dot: #8b5cf6;

    /* Neutralūs tonai */
    --bg-app: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-color-focus: #818cf8;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Šešėliai */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

    /* Spinduliai ir perėjimai */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Baziniai stiliai */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Pagrindinis karkasas */
.app-layout {
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 28px 60px 28px;
}

/* ==========================================================================
   VIRŠUTINĖ NAVIGACIJA (HEADER)
   ========================================================================== */

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    height: 48px;
    flex-shrink: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.brand-logo-img {
    height: 36px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
}

.brand-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
    margin: 0 4px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.brand-logo svg {
    width: 24px;
    height: 24px;
}

.brand-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.badge-version {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    letter-spacing: 0.02em;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   2 PAGRINDINIAI VALDYMO MYGTUKAI (7 PRINCIPAS)
   ========================================================================== */

.main-tabs {
    display: flex;
    align-items: center;
    background: var(--bg-surface-alt);
    padding: 5px;
    border-radius: var(--radius-lg);
    gap: 6px;
    border: 1px solid var(--border-color);
}

.main-tab-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.main-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.6);
}

.main-tab-btn.active {
    background: #ffffff;
    color: var(--brand-primary);
    box-shadow: var(--shadow-sm);
}

.tab-icon {
    width: 18px;
    height: 18px;
}

.tab-badge {
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.main-tab-btn.active .tab-badge {
    background: var(--brand-primary);
    color: #ffffff;
}

/* Viršutinės juostos veiksmai */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   MYGTUKŲ SISTEMA
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-surface-alt);
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.btn-secondary {
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--brand-primary);
    padding: 6px 12px;
}

.btn-ghost:hover {
    background: var(--brand-primary-light);
}

.btn-success {
    background: #059669;
    color: #ffffff;
}

.btn-success:hover {
    background: #047857;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 12px;
}

/* ==========================================================================
   VAIZDAI (SECTIONS)
   ========================================================================== */

.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.view-section.active {
    display: block;
    opacity: 1;
}

/* ==========================================================================
   STATISTIKA / KPI
   ========================================================================== */

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.stat-total .stat-icon-wrapper { background: #f1f5f9; color: #475569; }
.stat-new .stat-icon-wrapper { background: #eff6ff; color: #2563eb; }
.stat-progress .stat-icon-wrapper { background: #ecfdf5; color: #059669; }
.stat-delayed .stat-icon-wrapper { background: #fffbeb; color: #d97706; }
.stat-completed .stat-icon-wrapper { background: #f5f3ff; color: #7c3aed; }
.stat-avg .stat-icon-wrapper { background: #e0f2fe; color: #0284c7; }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ==========================================================================
   FILTRAI IR PAIEŠKA
   ========================================================================== */

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    flex: 1;
    min-width: 280px;
    gap: 10px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--border-color-focus);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-box input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}

.btn-clear-search {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-item select {
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.filter-item select:focus {
    border-color: var(--border-color-focus);
}

/* ==========================================================================
   PROJEKTŲ TINKLELIS IR KORTELĖS
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(390px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

/* Viršutinis statuso indikatoriaus apvadas */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--border-color);
}

.project-card.status-naujas::before { background: var(--status-naujas-dot); }
.project-card.status-vykdomas::before { background: var(--status-vykdomas-dot); }
.project-card.status-atidėtas::before { background: var(--status-atidetas-dot); }
.project-card.status-užbaigtas::before { background: var(--status-uzbaigtas-dot); }

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.project-id-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Statuso žymos (6 principas) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-pill.status-naujas {
    background: var(--status-naujas-bg);
    color: var(--status-naujas-text);
    border: 1px solid var(--status-naujas-border);
}
.status-pill.status-naujas .status-dot { background: var(--status-naujas-dot); }

.status-pill.status-vykdomas {
    background: var(--status-vykdomas-bg);
    color: var(--status-vykdomas-text);
    border: 1px solid var(--status-vykdomas-border);
}
.status-pill.status-vykdomas .status-dot { background: var(--status-vykdomas-dot); }

.status-pill.status-atidėtas {
    background: var(--status-atidetas-bg);
    color: var(--status-atidetas-text);
    border: 1px solid var(--status-atidetas-border);
}
.status-pill.status-atidėtas .status-dot { background: var(--status-atidetas-dot); }

.status-pill.status-užbaigtas {
    background: var(--status-uzbaigtas-bg);
    color: var(--status-uzbaigtas-text);
    border: 1px solid var(--status-uzbaigtas-border);
}
.status-pill.status-užbaigtas .status-dot { background: var(--status-uzbaigtas-dot); }

/* Projekto antraštė ir aprašymas */
.project-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Vadovo blokas (2 principas: 1 darbuotojas) */
.project-manager-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 16px;
}

.manager-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.manager-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.manager-role-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.manager-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manager-email {
    font-size: 11px;
    color: var(--brand-primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manager-email:hover {
    text-decoration: underline;
}

/* Progresas (5 principas: kiek procentų įvykdyta) */
.progress-container {
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.progress-percentage {
    color: var(--brand-primary);
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.status-užbaigtas .progress-fill {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Projekto etapai (5 principas: nebūtina pildyti) */
.project-stages-box {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-bottom: 14px;
}

.stages-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    cursor: pointer;
}

.stages-box-count {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--bg-surface-alt);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.stages-checklist {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stage-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.stage-check-item:hover {
    background: var(--bg-surface-alt);
}

.stage-checkbox {
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--brand-primary);
}

.stage-text {
    line-height: 1.35;
    flex: 1;
}

.stage-check-item.completed .stage-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.stages-empty-text {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

/* Datos ir atnaujinimai */
.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
}

.deadline-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.deadline-pill.overdue {
    color: #dc2626;
    font-weight: 600;
}

.card-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon-action {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-action:hover {
    background: var(--bg-surface-alt);
    color: var(--brand-primary);
    border-color: #cbd5e1;
}

.btn-icon-action.delete:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* ==========================================================================
   DARBUOTOJŲ VAIZDAS IR KORTELĖS (3 IR 4 PRINCIPAI)
   ========================================================================== */

.employees-header-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
    box-shadow: var(--shadow-xs);
}

.employees-header-text h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.employees-header-text p {
    font-size: 13px;
    color: var(--text-muted);
}

.employee-stats-badge {
    font-size: 13px;
    color: var(--text-secondary);
}

.employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.employee-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.employee-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.employee-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.employee-info-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.employee-large-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.employee-name-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.employee-role-dept {
    font-size: 12px;
    color: var(--text-muted);
}

.employee-id-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-alt);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Kontaktai */
.employee-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-surface-alt);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-bottom: 16px;
}

.employee-contact-row a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

.employee-contact-row a:hover {
    text-decoration: underline;
}

/* Darbuotojui priskirti projektai */
.employee-projects-section {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-bottom: 16px;
}

.employee-projects-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.employee-projects-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.employee-project-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    cursor: pointer;
    transition: var(--transition);
}

.employee-project-tag:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.employee-project-title-text {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.no-projects-assigned {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

.employee-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* ==========================================================================
   MODALINIAI LANGAI
   ========================================================================== */

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-backdrop.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog.modal-lg {
    max-width: 760px;
}

.modal-dialog.modal-xl {
    max-width: 960px;
    height: 85vh;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon-badge svg {
    width: 20px;
    height: 20px;
}

.modal-icon-badge.accent-purple {
    background: #f3e8ff;
    color: #7e22ce;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-alt);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal-footer-split {
    justify-content: space-between;
}

.footer-left-actions, .footer-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   FORMŲ ELEMENTAI
   ========================================================================== */

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

.form-row {
    display: grid;
    gap: 16px;
}

.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-label.required::after {
    content: " *";
    color: #ef4444;
}

.badge-optional {
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    margin-left: 6px;
}

.field-hint {
    font-size: 11px;
    color: var(--text-muted);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--border-color-focus);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.input-with-button {
    display: flex;
    gap: 6px;
}

.highlight-box {
    background: var(--brand-primary-light);
    border: 1px solid #c7d2fe;
    border-radius: var(--radius-md);
    padding: 14px;
}

.manager-selection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Progresas modale */
.progress-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.progress-badge {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    padding: 2px 8px;
    background: var(--brand-primary-light);
    border-radius: var(--radius-sm);
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-range {
    flex: 1;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.num-input {
    width: 70px;
    text-align: center;
    font-weight: 600;
}

.unit-symbol {
    font-weight: 600;
    color: var(--text-muted);
}

/* Projekto etapų dinaminis kūrimas (5 principas) */
.stages-section {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.stages-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stages-input-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stage-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    animation: fadeIn 0.15s ease;
}

.stage-input-row .stage-cb {
    cursor: pointer;
    accent-color: var(--brand-primary);
}

.stage-input-row .stage-title-input {
    flex: 1;
    border: none;
    font-size: 13px;
    outline: none;
    background: transparent;
    color: var(--text-primary);
}

.btn-remove-stage {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-remove-stage:hover {
    color: #ef4444;
    background: #fee2e2;
}

/* ==========================================================================
   ATASKAITŲ NUSTATYMAI (8 PRINCIPAS)
   ========================================================================== */

.settings-card {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.settings-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.settings-card-icon {
    font-size: 24px;
    line-height: 1;
}

.settings-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.settings-card-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.schedule-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.toggle-container input {
    display: none;
}

.toggle-slider {
    width: 38px;
    height: 22px;
    background: #cbd5e1;
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition);
}

.toggle-container input:checked + .toggle-slider {
    background: var(--brand-primary);
}

.toggle-container input:checked + .toggle-slider::before {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.recipient-add-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.recipients-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 40px;
}

.recipient-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 4px 10px 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.recipient-chip .chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 14px;
    margin-left: 2px;
}

.recipient-chip .chip-remove:hover {
    color: #ef4444;
}

.smtp-collapsible {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
}

.smtp-summary {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
}

.smtp-form-content {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-body {
    padding: 0;
    height: 100%;
}

.preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 480px;
}

/* ==========================================================================
   TUŠČIA BŪSENA (EMPTY STATE)
   ========================================================================== */

.empty-state {
    background: #ffffff;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.empty-illustration {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-surface-alt);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-illustration svg {
    width: 32px;
    height: 32px;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 400px;
}

/* ==========================================================================
   TOAST PRANEŠIMAI
   ========================================================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow-xl);
    font-size: 13px;
    font-weight: 500;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 380px;
}

@keyframes toastIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.toast-success { border-left: 4px solid #10b981; }
.toast.toast-error { border-left: 4px solid #ef4444; }
.toast.toast-info { border-left: 4px solid var(--brand-accent); }

/* ==========================================================================
   RESPONSIVE PRITAIKYMAS
   ========================================================================== */

@media (max-width: 900px) {
    .top-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .main-tabs {
        justify-content: center;
    }

    .nav-actions {
        justify-content: flex-end;
    }

    .form-row-2, .form-row-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .app-layout {
        padding: 12px 14px 40px 14px;
    }

    .projects-grid, .employees-grid {
        grid-template-columns: 1fr;
    }

    .modal-dialog {
        max-height: 95vh;
        margin: 10px;
    }

    .modal-body {
        padding: 16px;
    }
}

/* Papildomi SMTP elementų stiliai */
.highlight-card {
    background: #f8fafc;
    border: 1px solid #c7d2fe;
}

.preset-buttons {
    display: flex;
    gap: 6px;
}

.smtp-help-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #1e3a8a;
}

.smtp-help-banner .banner-title {
    font-weight: 700;
    margin-bottom: 4px;
    color: #1d4ed8;
}

.smtp-help-banner a {
    color: #2563eb;
    font-weight: 600;
}

