        /* ========== ПЕРЕМЕННЫЕ ========== */

        :root {
            /* Основные цвета */
            --primary: #1E3A5F;
            --primary-light: #2E5A8B;
            --primary-bg: #E8F0F8;

            /* Акцентные */
            --accent: #FF6B35;
            --accent-dark: #E55A2B;
            --accent-light: #FFF0EB;

            /* Фоны */
            --bg-main: #F5F7FA;
            --bg-card: #FFFFFF;
            --border: #E2E8F0;

            /* Текст */
            --text-primary: #1A202C;
            --text-secondary: #4A5568;
            --text-muted: #A0AEC0;

            /* Статусы */
            --success: #10B981;
            --success-bg: #D1FAE5;
            --warning: #F59E0B;
            --warning-bg: #FEF3C7;
            --error: #EF4444;
            --error-bg: #FEE2E2;
            --danger: #EF4444;
            --info: #3B82F6;
            --info-bg: #DBEAFE;

            /* Размеры */
            --sidebar-width: 260px;
            --sidebar-collapsed: 72px;
            --header-height: 64px;
            --radius: 12px;
            --radius-sm: 8px;
        }

        /* ========== СБРОС И БАЗОВЫЕ СТИЛИ ========== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-main);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        button {
            font-family: inherit;
            cursor: pointer;
            border: none;
            outline: none;
        }

        input, select, textarea {
            font-family: inherit;
            font-size: 14px;
        }

        /* ========== LAYOUT ========== */
        .app {
            display: flex;
            min-height: 100vh;
        }

        /* ========== SIDEBAR ========== */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--bg-card);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            z-index: 100;
            transition: width 0.3s ease;
        }

        .sidebar.collapsed {
            width: var(--sidebar-collapsed);
        }

        .sidebar-logo {
            height: var(--header-height);
            display: flex;
            align-items: center;
            padding: 0 20px;
            border-bottom: 1px solid var(--border);
            background: var(--primary);
            color: white;
            gap: 12px;
        }

        .sidebar-logo-icon {
            font-size: 24px;
        }

        .sidebar-logo-text {
            font-weight: 700;
            font-size: 16px;
            white-space: nowrap;
        }

        .sidebar.collapsed .sidebar-logo-text {
            display: none;
        }

        .sidebar-content {
            flex: 1;
            padding: 16px 12px;
            overflow-y: auto;
        }

        .sidebar-btn-new {
            width: 100%;
            background: var(--accent);
            color: white;
            padding: 12px 16px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-bottom: 24px;
            transition: all 0.2s;
        }

        .sidebar-btn-new:hover {
            background: var(--accent-dark);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
        }

        .sidebar.collapsed .sidebar-btn-new span {
            display: none;
        }

        .sidebar-section {
            margin-bottom: 24px;
        }

        .sidebar-section-title {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 0 12px;
            margin-bottom: 8px;
        }

        .sidebar.collapsed .sidebar-section-title {
            display: none;
        }

        .sidebar-nav {
            list-style: none;
        }

        .sidebar-nav-item {
            margin-bottom: 4px;
        }

        .sidebar-nav-link {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            transition: all 0.2s;
            position: relative;
        }

        .sidebar-nav-link:hover {
            background: var(--bg-main);
        }

        .sidebar-nav-link.active {
            background: var(--primary-bg);
            color: var(--primary);
        }

        .sidebar-nav-link.active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 24px;
            background: var(--accent);
            border-radius: 0 3px 3px 0;
        }

        .sidebar-nav-icon {
            font-size: 18px;
            width: 24px;
            text-align: center;
        }

        .sidebar-nav-text {
            white-space: nowrap;
        }

        .sidebar.collapsed .sidebar-nav-text {
            display: none;
        }

        .sidebar-nav-badge {
            margin-left: auto;
            background: var(--accent);
            color: white;
            font-size: 11px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
        }

        .sidebar.collapsed .sidebar-nav-badge {
            display: none;
        }

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

        .sidebar-toggle {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            background: transparent;
            color: var(--text-muted);
            border-radius: var(--radius-sm);
            transition: all 0.2s;
        }

        .sidebar-toggle:hover {
            background: var(--bg-main);
            color: var(--text-secondary);
        }

        .sidebar.collapsed .sidebar-toggle span {
            display: none;
        }

        /* ========== MAIN CONTENT ========== */
        .main {
            flex: 1;
            margin-left: var(--sidebar-width);
            transition: margin-left 0.3s ease;
        }

        .sidebar.collapsed + .main {
            margin-left: var(--sidebar-collapsed);
        }

        /* ========== HEADER ========== */
        .header {
            height: var(--header-height);
            background: var(--primary);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .header-search {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-sm);
            padding: 8px 16px;
            width: 400px;
            max-width: 100%;
        }

        .header-search-icon {
            color: rgba(255, 255, 255, 0.6);
            margin-right: 12px;
        }

        .header-search input {
            background: transparent;
            border: none;
            color: white;
            width: 100%;
            outline: none;
        }

        .header-search input::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-btn {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-sm);
            color: white;
            position: relative;
            transition: all 0.2s;
        }

        .header-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header-btn-badge {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
        }

        .header-user {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-left: 16px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s;
        }

        .header-user:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header-user-avatar {
            width: 32px;
            height: 32px;
            background: var(--accent);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 12px;
        }

        .header-user-info {
            color: white;
        }

        .header-user-name {
            font-weight: 500;
            font-size: 14px;
        }

        .header-user-role {
            font-size: 11px;
            opacity: 0.7;
        }

        /* ========== PAGE CONTENT ========== */
        .page {
            padding: 24px;
            display: none;
        }

        .page.active {
            display: block;
        }

        .page-header {
            margin-bottom: 24px;
        }

        .page-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .page-subtitle {
            color: var(--text-secondary);
        }

        /* ========== STATS CARDS ========== */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 32px;
        }

        .stat-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: all 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

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

        .stat-card-icon {
            width: 48px;
            height: 48px;
            background: var(--primary-bg);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .stat-card-icon.orange {
            background: var(--accent-light);
        }

        .stat-card-icon.green {
            background: var(--success-bg);
        }

        .stat-card-icon.blue {
            background: var(--info-bg);
        }

        .stat-card-trend {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            font-weight: 500;
        }

        .stat-card-trend.up {
            color: var(--success);
        }

        .stat-card-trend.down {
            color: var(--error);
        }

        .stat-card-value {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .stat-card-label {
            color: var(--text-secondary);
        }

        /* ========== PROJECT CARDS ========== */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
        }

        .section-link {
            color: var(--primary);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .section-link:hover {
            color: var(--accent);
        }

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

        .project-card {
            background: var(--bg-card);
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: all 0.2s;
        }

        .project-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .project-card-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
        }

        .project-card-icon {
            width: 48px;
            height: 48px;
            background: var(--primary-bg);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }

        .project-card-info {
            flex: 1;
            min-width: 0;
        }

        .project-card-title {
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .project-card-client {
            color: var(--text-secondary);
            font-size: 13px;
        }

        .project-card-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
        }

        .project-card-badge.draft {
            background: var(--bg-main);
            color: var(--text-secondary);
        }

        .project-card-badge.progress {
            background: var(--warning-bg);
            color: #D97706;
        }

        .project-card-badge.review {
            background: var(--info-bg);
            color: #2563EB;
        }

        .project-card-badge.done {
            background: var(--success-bg);
            color: #059669;
        }

        .project-card-badge.rejected {
            background: var(--error-bg);
            color: #DC2626;
        }

        .project-card-progress {
            margin-bottom: 16px;
        }

        .progress-bar {
            height: 8px;
            background: var(--bg-main);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 8px;
        }

        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
            border-radius: 4px;
            transition: width 0.3s ease;
        }

        .progress-text {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--text-muted);
        }

        .project-card-meta {
            display: flex;
            justify-content: space-between;
            padding: 16px 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin-bottom: 16px;
        }

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

        .project-card-meta-value {
            font-weight: 600;
            color: var(--text-primary);
        }

        .project-card-actions {
            display: flex;
            gap: 8px;
        }

        /* ========== BUTTONS ========== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s;
        }

        .btn-primary {
            background: var(--accent);
            color: white;
        }

        .btn-primary:hover {
            background: var(--accent-dark);
            box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
        }

        .btn-secondary {
            background: var(--bg-card);
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }

        .btn-secondary:hover {
            background: var(--bg-main);
            border-color: var(--text-muted);
        }

        .btn-icon {
            width: 36px;
            height: 36px;
            padding: 0;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
        }

        .btn-icon:hover {
            background: var(--bg-main);
            color: var(--primary);
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 13px;
        }

        /* ========== TABLE ========== */
        .table-container {
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

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

        .table-filters {
            display: flex;
            gap: 12px;
        }

        .filter-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--bg-main);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .filter-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .table-search {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--bg-main);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            width: 280px;
        }

        .table-search input {
            border: none;
            background: transparent;
            width: 100%;
            outline: none;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th {
            text-align: left;
            padding: 12px 20px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            background: var(--bg-main);
            border-bottom: 1px solid var(--border);
        }

        .table td {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

        .table tr:hover {
            background: var(--bg-main);
        }

        .table-project {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .table-project-icon {
            width: 40px;
            height: 40px;
            background: var(--primary-bg);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .table-project-name {
            font-weight: 500;
        }

        .table-project-id {
            font-size: 12px;
            color: var(--text-muted);
        }

        .table-amount {
            font-weight: 600;
            color: var(--text-primary);
        }

        .table-actions {
            display: flex;
            gap: 8px;
        }

        .table-pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-top: 1px solid var(--border);
        }

        .pagination-info {
            color: var(--text-secondary);
            font-size: 13px;
        }

        .pagination-buttons {
            display: flex;
            gap: 4px;
        }

        .pagination-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .pagination-btn:hover {
            background: var(--bg-main);
            border-color: var(--primary);
            color: var(--primary);
        }

        .pagination-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* ========== FORM STYLES ========== */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group.full-width {
            grid-column: span 2;
        }

        .form-label {
            display: block;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .form-label span {
            color: var(--error);
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            transition: all 0.2s;
        }

        .form-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
            outline: none;
        }

        .form-input::placeholder {
            color: var(--text-muted);
        }

        .form-select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23A0AEC0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 20px;
        }

        .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
            outline: none;
        }

        .form-textarea {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            resize: vertical;
            min-height: 120px;
        }

        .form-textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
            outline: none;
        }

        .form-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        /* ========== CARD SECTIONS ========== */
        .card {
            background: var(--bg-card);
            border-radius: var(--radius);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 24px;
        }

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

        .card-title {
            font-size: 16px;
            font-weight: 600;
        }

        .card-body {
            padding: 24px;
        }

        /* ========== WORK ITEMS ========== */
        .work-item {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 16px;
            background: var(--bg-main);
            border-radius: var(--radius-sm);
            margin-bottom: 12px;
        }

        .work-item:last-child {
            margin-bottom: 0;
        }

        .work-item-drag {
            color: var(--text-muted);
            cursor: grab;
        }

        .work-item-content {
            flex: 1;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 16px;
            align-items: center;
        }

        .work-item-name {
            font-weight: 500;
        }

        .work-item-input {
            padding: 8px 12px;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--bg-card);
            width: 100%;
        }

        .work-item-total {
            font-weight: 600;
            color: var(--primary);
        }

        .work-item-delete {
            color: var(--text-muted);
            background: none;
            padding: 8px;
            border-radius: var(--radius-sm);
            transition: all 0.2s;
        }

        .work-item-delete:hover {
            background: var(--error-bg);
            color: var(--error);
        }

        .add-work-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 16px;
            background: transparent;
            border: 2px dashed var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-muted);
            font-weight: 500;
            transition: all 0.2s;
            margin-top: 16px;
        }

        .add-work-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-bg);
        }

        /* ========== SUMMARY BOX ========== */
        .summary-box {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            border-radius: var(--radius);
            padding: 24px;
            color: white;
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .summary-row:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .summary-label {
            opacity: 0.8;
        }

        .summary-value {
            font-weight: 600;
        }

        .summary-total {
            font-size: 24px;
            font-weight: 700;
        }

        /* ========== CLIENT CARD ========== */
        .client-header {
            display: flex;
            gap: 24px;
            align-items: flex-start;
        }

        .client-avatar {
            width: 80px;
            height: 80px;
            background: var(--primary-bg);
            border-radius: var(--radius);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            flex-shrink: 0;
        }

        .client-info h2 {
            font-size: 24px;
            margin-bottom: 4px;
        }

        .client-type {
            display: inline-block;
            padding: 4px 12px;
            background: var(--primary-bg);
            color: var(--primary);
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            margin-bottom: 12px;
        }

        .client-contacts {
            display: flex;
            gap: 24px;
        }

        .client-contact {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
        }

        .client-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin-top: 24px;
            padding-top: 24px;
            border-top: 1px solid var(--border);
        }

        .client-stat {
            text-align: center;
        }

        .client-stat-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
        }

        .client-stat-label {
            color: var(--text-secondary);
            font-size: 13px;
        }

        /* ========== SETTINGS ========== */
        .settings-nav {
            display: flex;
            gap: 4px;
            margin-bottom: 24px;
            border-bottom: 1px solid var(--border);
            padding-bottom: 0;
        }

        .settings-nav-item {
            padding: 12px 20px;
            color: var(--text-secondary);
            font-weight: 500;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -1px;
            transition: all 0.2s;
        }

        .settings-nav-item:hover {
            color: var(--primary);
        }

        .settings-nav-item.active {
            color: var(--primary);
            border-bottom-color: var(--accent);
        }

        .settings-section {
            margin-bottom: 32px;
        }

        .settings-section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .toggle-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
        }

        .toggle-info h4 {
            font-weight: 500;
            margin-bottom: 4px;
        }

        .toggle-info p {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .toggle {
            width: 48px;
            height: 26px;
            background: var(--border);
            border-radius: 13px;
            position: relative;
            cursor: pointer;
            transition: all 0.2s;
        }

        .toggle.active {
            background: var(--success);
        }

        .toggle::after {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            background: white;
            border-radius: 50%;
            top: 2px;
            left: 2px;
            transition: all 0.2s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .toggle.active::after {
            left: 24px;
        }

        /* ========== MATERIALS TABLE ========== */
        .materials-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .materials-tabs {
            display: flex;
            gap: 8px;
        }

        .materials-tab {
            padding: 8px 20px;
            background: var(--bg-main);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-secondary);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .materials-tab:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .materials-tab.active {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 1280px) {
            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

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

        @media (max-width: 768px) {
            .sidebar {
                width: var(--sidebar-collapsed);
            }

            .sidebar .sidebar-logo-text,
            .sidebar .sidebar-section-title,
            .sidebar .sidebar-nav-text,
            .sidebar .sidebar-nav-badge,
            .sidebar .sidebar-btn-new span,
            .sidebar .sidebar-toggle span {
                display: none;
            }

            .main {
                margin-left: var(--sidebar-collapsed);
            }

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

            .header-search {
                display: none;
            }

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

            .form-group.full-width {
                grid-column: span 1;
            }
        }

        /* ========== ANIMATIONS ========== */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .page.active {
            animation: fadeIn 0.3s ease;
        }