/* public/assets/css/style.css */

/* Google Font: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #007BFF;
    --primary-light: #00C6FF;
    --navy: #0B1A2D;
    --silver: #C0C5CC;
    --silver-light: #E8EBEE;
    --white-smoke: #F5F6F7;
    --text-muted: #B0B8C1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, #0f2742, var(--navy));
    color: #ffffff;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-body {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(135deg, #0b182a 0%, #0f2742 35%, #0a1322 100%);
}

/* Zentrischer Auth-Wrapper */

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 32px 16px;
}

.auth-card {
    background: radial-gradient(circle at top, rgba(0, 198, 255, 0.18), rgba(11, 26, 45, 0.96));
    border-radius: 26px;
    padding: 26px 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(24px);
}

/* Logo oben */

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}

.auth-logo img {
    height: 52px;
}

.auth-brand-text {
    text-align: left;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--text-muted);
}

/* Überschriften & Text */

.form-title {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.form-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* Formulare */

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

label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(192, 197, 204, 0.25);
    background: rgba(5, 13, 26, 0.9);
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 1px rgba(0, 198, 255, 0.3);
    transform: translateY(-1px);
}

/* Number inputs: spinners ausblenden und Look angleichen */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Buttons */

.btn-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 123, 255, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    line-height: 1;
    font-weight: 600;
    font-family: inherit;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 40%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-150%) rotate(12deg);
    opacity: 0;
}

.btn:hover::before {
    animation: button-shine 0.9s forwards;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 198, 255, 0.5);
}

.btn,
.btn:visited {
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(192, 197, 204, 0.5);
    box-shadow: none;
    color: var(--silver-light);
    text-decoration: none;
}

.btn-secondary,
.btn-secondary:visited {
    color: var(--silver-light);
}

.btn-secondary.danger {
    border-color: rgba(220, 53, 69, 0.7);
    color: #ffb3bd;
}

.btn-secondary.danger:hover {
    border-color: rgba(255, 99, 132, 0.9);
    color: #ffe1e8;
    box-shadow: 0 8px 18px rgba(220, 53, 69, 0.22);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 198, 255, 0.3);
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
    margin-right: 6px;
}

.btn.is-loading {
    pointer-events: none;
    opacity: 0.9;
}

.btn.is-loading .btn-spinner {
    display: inline-block;
}

.btn.is-loading .btn-label {
    opacity: 0.9;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress {
    width: 180px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: none;
}

.progress .progress-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,198,255,0.5), rgba(0,255,191,0.8));
    animation: progress-indeterminate 1.1s ease-in-out infinite;
}

.progress.is-active {
    display: block;
}

@keyframes progress-indeterminate {
    0% { transform: translateX(-60%); }
    50% { transform: translateX(40%); }
    100% { transform: translateX(120%); }
}

.status-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
}

.status-check.is-active {
    border-color: rgba(52, 199, 89, 0.5);
    color: #34c759;
    background: rgba(52, 199, 89, 0.14);
    box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.14);
}

.input-with-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.input-with-toggle input {
    flex: 1;
}

.input-with-toggle .btn.btn-icon {
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 40px;
}

.hw-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.hw-meter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.hw-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #e8ecf2;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.hw-meta .hw-value {
    color: var(--silver-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.hw-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.hw-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00c6ff, #007bff);
    transition: width 0.35s ease;
}

.hw-fill.warning {
    background: linear-gradient(90deg, #ffb347, #ff8c00);
}

.hw-fill.danger {
    background: linear-gradient(90deg, #ff5f6d, #ff3c3c);
}

.hw-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hw-stat {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.12), rgba(11, 26, 45, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px 10px 14px;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    isolation: isolate;
}

.hw-stat::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -40%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
    transform: rotate(18deg);
    animation: glow-shift 4s ease-in-out infinite;
    z-index: 0;
}

.hw-stat-main {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.hw-stat .label {
    color: #e8ecf2;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.hw-stat .value {
    color: var(--silver-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.hw-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #007bff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b1a2d;
    box-shadow: 0 10px 20px rgba(0, 198, 255, 0.25);
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.hw-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0.6;
}

.hw-icon.cpu::before { content: 'C'; }
.hw-icon.gpu::before { content: 'G'; }
.hw-icon.ssd::before { content: 'S'; }

@keyframes glow-shift {
    0%, 100% { transform: translateX(0) rotate(18deg); }
    50% { transform: translateX(30%) rotate(18deg); }
}

.toggle-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 0.82rem;
    color: var(--silver-light);
    min-width: 170px;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-switch .slider {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: rgba(192, 197, 204, 0.25);
    border: 1px solid rgba(192, 197, 204, 0.35);
    position: relative;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-switch .slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 1px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background 0.2s ease;
}

.toggle-switch input:checked + .slider {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: rgba(46, 204, 113, 0.8);
}

.toggle-switch input:checked + .slider::after {
    transform: translateX(17px);
    background: #eafff4;
}

.toggle-switch.ai-forecast input:checked + .slider {
    background: linear-gradient(135deg, #ffd54f, #ffb300);
    border-color: rgba(255, 193, 7, 0.95);
    box-shadow: 0 0 18px rgba(255, 193, 7, 0.55), inset 0 0 10px rgba(255, 193, 7, 0.35);
    animation: pulse-energy 1s ease-in-out infinite;
}

.toggle-switch.ai-forecast input:checked + .slider::after {
    background: #fffbe6;
}

@keyframes pulse-energy {
    0% { box-shadow: 0 0 10px rgba(255, 193, 7, 0.35), inset 0 0 0 rgba(255, 193, 7, 0); }
    35% { box-shadow: 0 0 26px rgba(255, 193, 7, 0.75), inset 0 0 12px rgba(255, 193, 7, 0.45); }
    70% { box-shadow: 0 0 30px rgba(255, 193, 7, 0.65), inset 0 0 10px rgba(255, 193, 7, 0.35); }
    100% { box-shadow: 0 0 12px rgba(255, 193, 7, 0.35), inset 0 0 0 rgba(255, 193, 7, 0); }
}
.toggle-switch .toggle-label {
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Text / Links */

.link-muted {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.link-muted a {
    color: var(--primary-light);
    text-decoration: none;
}

.link-muted a:hover {
    text-decoration: underline;
}

/* Flash Messages */

.flash {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

.flash-error {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffb3bd;
}

.flash-success {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.6);
    color: #c2ffcf;
}

/* File Input */
.file-input {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-input input[type="file"] {
    display: none;
}

.file-input .file-name {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dashboard (unverändert, falls du es schon nutzt) */

.dashboard-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px 40px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.badge-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(192, 197, 204, 0.4);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.card {
    background: linear-gradient(145deg, rgba(11, 26, 45, 0.96), rgba(0, 123, 255, 0.22));
    border-radius: 20px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.stock-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.stock-list th,
.stock-list td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.stock-list th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stock-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.stock-symbol {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    letter-spacing: 0.08em;
}

.stock-name {
    font-weight: 600;
}

.app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 39, 66, 0.8);
    backdrop-filter: blur(8px);
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header .brand img {
    height: 40px;
}

.app-header .brand h1 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--silver-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flash-bar {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flash-toggle {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.16), rgba(0, 123, 255, 0.24));
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8ecf2;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.flash-list {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 260px;
    max-width: 420px;
    display: none;
    flex-direction: column;
    gap: 6px;
    background: rgba(5, 13, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
    border-radius: 14px;
    padding: 10px;
    z-index: 1200;
}

.flash-list.is-open {
    display: flex;
}

.flash-item {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.flash-item.success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #c2ffcf;
}

.flash-item.error {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ffb3bd;
}

.flash-toast-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
    pointer-events: none;
}

.flash-toast {
    min-width: 260px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(5, 13, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
    color: #e8ecf2;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
    text-align: center;
}

.flash-toast.success {
    border-color: rgba(40, 167, 69, 0.35);
    background: rgba(40, 167, 69, 0.14);
}

.flash-toast.error {
    border-color: rgba(220, 53, 69, 0.35);
    background: rgba(220, 53, 69, 0.14);
}

.flash-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(192, 197, 204, 0.5);
    color: #f5f5f5;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #242c3a, #1a2332);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pulse-indicator .indicator-label {
    z-index: 2;
}

.pulse-indicator .indicator-spinner {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #15803d;
}

.pulse-indicator.is-active {
    background: linear-gradient(135deg, #242c3a, #1a2332);
    border-color: rgba(192, 197, 204, 0.5);
    color: #f5f5f5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pulse-indicator.is-active .indicator-label {
    opacity: 0;
}

.pulse-indicator.is-active .indicator-spinner {
    display: inline-flex;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.app-main {
    display: grid;
    grid-template-columns: 240px 1fr;
    flex: 1;
    min-height: 0;
}

.sidebar {
    padding: 22px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(8, 16, 28, 0.9);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.nav-title {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.app-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.app-nav a:hover,
.app-nav a.is-active {
    background: rgba(0, 123, 255, 0.16);
    border-color: rgba(0, 123, 255, 0.4);
}

.content {
    padding: 26px;
    display: grid;
    gap: 18px;
}

.page-title {
    margin: 0 0 8px;
    font-size: 1.6rem;
}

.page-subtitle {
    margin: 0 0 20px;
    color: var(--text-muted);
}

.app-footer {
    display: none;
}

/* Animationen */

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes button-shine {
    0% {
        transform: translateX(-150%) rotate(12deg);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateX(200%) rotate(12deg);
        opacity: 0;
    }
}

.is-visible {
    animation: fade-up 0.7s ease forwards;
}

/* Alpha Vantage card */

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e8ecf2;
}

.pill-ghost {
    background: rgba(255, 255, 255, 0.06);
}

.pill-glow {
    background: linear-gradient(135deg, #1fa2ff, #12d8fa, #a6ffcb);
    color: #0b182a;
    border: none;
    box-shadow: 0 12px 32px rgba(18, 216, 250, 0.35);
}

.av-card {
    background: radial-gradient(circle at 20% 10%, rgba(0, 198, 255, 0.08), transparent 30%), linear-gradient(140deg, rgba(6, 22, 39, 0.95), rgba(11, 26, 45, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.av-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.av-subtitle {
    margin-top: 6px;
    color: var(--silver);
    max-width: 780px;
}

.av-form {
    margin-top: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.av-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.av-field input[type="number"] {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 16, 28, 0.9);
    color: #fff;
    font-size: 0.95rem;
}

.av-form-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.av-form-footer .hint {
    color: var(--silver-light);
    font-size: 13px;
}

.av-usage {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.av-usage-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.av-usage-head h4 {
    margin: 4px 0 0;
}

.av-updated {
    font-size: 13px;
    color: var(--silver);
}

.av-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.av-stat {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(140deg, rgba(0, 198, 255, 0.08), rgba(255, 255, 255, 0));
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.av-stat .label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--silver);
}

.av-stat .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin: 4px 0;
}

.av-stat .muted {
    color: var(--silver);
    font-size: 12px;
}

.av-bar-block {
    margin-top: 14px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.av-bar-block .bar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.av-bar-block .bar-head .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--silver);
}

.av-bar-block .bar-head .muted {
    font-size: 12px;
    color: var(--silver);
}

.av-bar-block .bar-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--silver-light);
}

.av-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.av-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4db5ff, #2dd4bf);
    box-shadow: 0 0 12px rgba(77, 181, 255, 0.35);
    transition: width 0.25s ease, opacity 0.25s ease;
}

/* Responsiv */

@media (max-width: 480px) {
    .auth-card {
        padding: 22px 18px 24px;
    }

    .brand-name {
        font-size: 1.2rem;
    }

    .brand-tagline {
        display: none;
    }
}

@media (max-width: 960px) {
    .app-main {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .app-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .app-nav a {
        padding: 10px 14px;
    }
}

.news-card {
    padding: 18px 16px 20px;
}

.news-settings {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.news-settings__head {
    display: grid;
    gap: 4px;
}

.news-controls__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.news-limit-field {
    min-width: 240px;
}

.news-toggle .slider {
    background: #0f172a;
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.news-toggle input:checked + .slider {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.news-table-wrap {
    margin-top: 12px;
    overflow: auto;
}

.news-item {
    display: grid;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.news-item__title {
    font-weight: 700;
    color: #e8ecf2;
    font-size: 0.95rem;
}

.news-item__body {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 10px;
    align-items: center;
}

.news-item__thumb img,
.news-thumb-placeholder {
    width: 75px;
    height: 75px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.news-thumb-placeholder {
    display: inline-block;
}

.news-item__meta {
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--silver-light);
}

.news-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-link {
    color: #38bdf8;
    text-decoration: none;
}

.news-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.news-summary-card {
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,123,255,0.12), rgba(0,198,255,0.08));
    border: 1px solid rgba(255,255,255,0.06);
    color: #e8ecf2;
}

.news-summary-card .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--silver);
}

.news-summary-card .value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Tasks */
.task-card {
    margin-bottom: 12px;
}

.task-input-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.task-input-field {
    flex: 1;
    min-width: 220px;
}

.task-head {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.task-item .check {
    margin: 0;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
}

.check input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(52, 199, 89, 0.4);
    background: rgba(52, 199, 89, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.12);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.check input[type="checkbox"]:checked {
    border-color: rgba(52, 199, 89, 0.8);
    background: rgba(52, 199, 89, 0.18);
    box-shadow: 0 0 0 1px rgba(52, 199, 89, 0.24), 0 0 10px rgba(52, 199, 89, 0.2);
}

.check input[type="checkbox"]:checked::after {
    content: '✓';
    color: #34c759;
    font-weight: 700;
    font-size: 0.9rem;
}

.task-title {
    flex: 1;
    font-weight: 600;
}

.task-empty {
    margin: 0;
    color: var(--text-muted);
}

/* Stock Accordion */
.stock-dashboard-card {
    margin-top: 12px;
}

.stock-dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stock-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stock-accordion__item {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.stock-accordion__header {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(0, 198, 255, 0.08));
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.stock-accordion__title {
    font-weight: 700;
}

.stock-accordion__meta {
    color: var(--silver);
    font-size: 0.9rem;
}

.stock-accordion__header .indicator {
    transition: transform 0.2s ease;
}

.stock-accordion__body {
    display: none;
    padding: 12px;
}

.stock-accordion__item.is-open .stock-accordion__body {
    display: block;
}

.stock-accordion__item.is-open .indicator {
    transform: rotate(90deg);
}
