/* screens.css — Стили экранов */

/* ===== Экран входа ===== */
.login-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #0a0e27 0%, #0d1b3e 30%, #102a5c 60%, #0a1628 100%); position: relative; overflow: hidden; }
.login-dots { position: absolute; top: -20%; right: -10%; width: 80%; height: 80%; background-image: radial-gradient(circle, rgba(60,140,255,0.4) 1px, transparent 1px); background-size: 14px 14px; border-radius: 50%; transform: rotate(-15deg); opacity: 0.6; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.login-card { width: 100%; max-width: 360px; position: relative; z-index: 1; text-align: center; }
/* Ряд: значок + надпись в одну строку */
.login-header { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 4px; }
.login-icon { width: 46px; height: 46px; border-radius: 13px; filter: invert(1) brightness(2); flex-shrink: 0; }
/* Заголовок — шрифт как в Смета 2.0 (Midnight Letters, курсив), одна строка */
.login-title { font-family: 'Midnight Letters', cursive; font-weight: 400; font-style: italic; font-size: 27px; letter-spacing: 2px; color: #fff; margin: 0; white-space: nowrap; text-shadow: 0 0 40px rgba(77,171,247,0.4); }
.login-title-main { color: #fff; }
.login-title-accent { color: #4dabf7; }
/* Разделительная полоса под заголовком (как в Смета 2.0) */
.login-divider { height: 2px; background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent); margin: 16px auto; width: 200px; }
.login-subtitle { font-size: 13px; color: rgba(255,255,255,0.5); }
.login-input { width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; background: rgba(255,255,255,0.08); color: #fff; font-size: 16px; text-align: center; letter-spacing: 3px; outline: none; transition: border-color 0.2s; }
/* Большое широкое поле для кода */
.login-input--lg { padding: 20px 18px; font-size: 22px; letter-spacing: 5px; border-radius: 14px; border-color: rgba(100,180,255,0.35); background: rgba(255,255,255,0.1); }
.login-input::placeholder { color: rgba(255,255,255,0.3); letter-spacing: 1px; }
.login-input:focus { border-color: rgba(100,180,255,0.5); }
.login-btn { width: 45%; padding: 8px; border: none; border-radius: 10px; background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(37,99,235,0.4)); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin: 12px auto 0; display: block; box-shadow: 0 2px 12px rgba(59,130,246,0.3), inset 0 1px 0 rgba(255,255,255,0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(59,130,246,0.2); }
.login-btn:active { transform: scale(0.97); box-shadow: 0 1px 6px rgba(59,130,246,0.2); }
.login-error { color: #f87171; font-size: 13px; text-align: center; margin-top: 12px; display: none; }

/* ===== Детали объекта ===== */
.detail-back-btn { position: absolute; top: 20px; left: 20px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.4); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; backdrop-filter: blur(8px); }
.detail-back-btn:active { background: rgba(0,0,0,0.6); }
.detail-image { width: 100%; aspect-ratio: 2/1; border-radius: 12px; background-size: cover; background-position: center; overflow: hidden; cursor: pointer; }
.detail-image-placeholder { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.1)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); border: 1px solid rgba(59,130,246,0.3); box-shadow: 0 0 10px rgba(59,130,246,0.15); }
.detail-name { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 4px; color: #fff; padding: 0 12px; }
.detail-action-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.15s; }
.detail-action-active { background: rgba(34,197,94,0.2); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.detail-action-select { background: transparent; color: var(--accent); border: 1px solid rgba(59,130,246,0.3); }
.detail-action-select:active { background: var(--accent); color: white; }
.detail-meta { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.detail-sections { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 100px; }
.detail-section { display: flex; align-items: center; gap: 12px; padding: 14px; background: rgba(255,255,255,0.09); border: 1px solid rgba(59,130,246,0.3); border-radius: 12px; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 0 8px rgba(59,130,246,0.15); }
.detail-section:hover { transform: translateY(-2px); box-shadow: 0 0 14px rgba(59,130,246,0.25), 0 4px 12px rgba(0,0,0,0.25); }
.detail-section:active { transform: scale(0.98) translateY(0); }
.section-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-info { flex: 1; min-width: 0; }
.section-title { font-weight: 600; font-size: 14px; }
.section-desc { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-bottom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 12px; background: linear-gradient(180deg, transparent, rgba(15,22,41,0.98) 20%); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; }
.detail-bottom-btn { padding: 9px; border: none; border-radius: 8px; font-weight: 600; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; transition: all 0.2s ease; }
.detail-bottom-create { background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(37,99,235,0.4)); color: white; grid-column: 1 / -1; border: 1px solid rgba(59,130,246,0.2); box-shadow: 0 2px 8px rgba(59,130,246,0.2); }
.detail-bottom-create:active { box-shadow: 0 1px 4px rgba(59,130,246,0.15); }
.detail-bottom-archive { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.15); }
.detail-bottom-archive:active { background: rgba(245,158,11,0.25); }
.detail-bottom-delete { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.15); }
.detail-bottom-delete:active { background: rgba(239,68,68,0.25); }

/* ===== Каталог сметы (из Работа 2.0) ===== */
.cat { background: rgba(255,255,255,0.06); border: 1px solid rgba(59,130,246,0.3); border-radius: 12px; margin-bottom: 8px; overflow: visible; box-shadow: 0 0 8px rgba(59,130,246,0.1); }
.cat-header { padding: 8px 12px; background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(37,99,235,0.2)); color: white; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 38px; border-radius: 12px; transition: all 0.15s; }
.cat-header:active { background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(37,99,235,0.3)); }
.cat-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.cat.open .cat-body { max-height: 9999px; overflow-y: auto; }
.cat-num { color: #60a5fa; margin-right: 4px; }
.cat-count { font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.5); margin-left: 6px; }
.cat-arrow { display: inline-block; transition: transform 0.25s ease; }
.cat.open .cat-arrow { transform: rotate(180deg); }
.work-item { display: flex; flex-direction: column; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 6px; transition: background 0.15s; }
.work-item.in-cart { background: rgba(34,197,94,0.08); border-left: 3px solid #22c55e; }
.work-name { font-size: 13px; word-wrap: break-word; font-weight: 500; }
.work-note { font-size: 11px; color: #f59e0b; font-style: italic; }
.work-meta { display: flex; justify-content: space-between; align-items: center; }
.work-price { font-size: 13px; color: #60a5fa; font-weight: 600; }
.work-actions { display: flex; align-items: center; gap: 4px; }
.btn-plus { width: 32px; height: 28px; background: rgba(59,130,246,0.2); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); border-radius: 6px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-plus:active { background: rgba(59,130,246,0.4); }
.btn-minus { width: 32px; height: 28px; background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); border-radius: 6px; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.btn-minus:active { background: rgba(239,68,68,0.3); }
.btn-minus:disabled { background: rgba(255,255,255,0.03); color: var(--muted); border-color: rgba(255,255,255,0.08); cursor: not-allowed; }
.qty-input { width: 44px; height: 28px; text-align: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: rgba(255,255,255,0.06); color: #fff; font-size: 13px; font-weight: 600; padding: 2px; }
.qty-input:focus { outline: none; border-color: rgba(59,130,246,0.5); }
.in-cart-badge { position: absolute; top: 6px; right: 6px; background: #22c55e; color: white; border-radius: 50%; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.coeff-select { padding: 2px 4px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: rgba(255,255,255,0.06); color: #fff; font-size: 11px; max-width: 80px; }
.coeff-select option { background: #0d1b3e; color: #fff; }

/* ===== Каталог прайс-базы ===== */
.pb-category { background: rgba(255,255,255,0.09); border: 1px solid rgba(59,130,246,0.3); border-radius: 12px; margin-bottom: 8px; overflow: hidden; box-shadow: 0 0 8px rgba(59,130,246,0.15); }
.pb-cat-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.pb-cat-header:active { background: rgba(255,255,255,0.03); }
.pb-cat-num { color: var(--accent); margin-right: 4px; }
.pb-cat-count { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.pb-cat-arrow { transition: transform 0.2s; }
.pb-category.open .pb-cat-arrow { transform: rotate(180deg); }
.pb-cat-body { border-top: 1px solid rgba(255,255,255,0.06); }
.pb-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.pb-item:last-child { border-bottom: none; }
.pb-item-info { flex: 1; min-width: 0; }
.pb-item-name { font-size: 13px; font-weight: 500; }
.pb-item-note { font-size: 11px; color: var(--muted); margin-top: 1px; }
.pb-item-price { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.pb-item-controls { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pb-qty-row { display: flex; align-items: center; gap: 2px; }
.pb-btn-minus, .pb-btn-plus { width: 28px; height: 28px; border: 1px solid rgba(59,130,246,0.3); border-radius: 6px; background: rgba(59,130,246,0.1); color: #60a5fa; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.pb-btn-minus:active, .pb-btn-plus:active { background: rgba(59,130,246,0.3); }
.pb-qty-input { width: 40px; text-align: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: rgba(255,255,255,0.06); color: #fff; font-size: 13px; font-weight: 600; padding: 2px; }
.pb-qty-input:focus { outline: none; border-color: rgba(59,130,246,0.5); }
.pb-btn-add { width: 32px; height: 32px; border: 1px solid rgba(59,130,246,0.3); border-radius: 8px; background: rgba(59,130,246,0.1); color: #60a5fa; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.pb-btn-add:active { background: rgba(59,130,246,0.3); }
.pb-coeff-select { width: 100%; padding: 3px 4px; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; background: rgba(255,255,255,0.06); color: #fff; font-size: 11px; }
.pb-coeff-select option { background: #0d1b3e; color: #fff; }

/* Навигация — в base.css */
