
/* =====================================================
   EGON DEALS | 3D PRINTING
   Zentrales Design
   ===================================================== */

:root {
    --bg: #101722;
    --bg-secondary: #151f2d;
    --surface: #1b2838;
    --surface-hover: #243449;

    --primary: #16c6d1;
    --primary-dark: #079ba8;
    --primary-light: #65e5eb;

    --text: #f1f5f9;
    --text-muted: #94a3b8;

    --border: rgba(148, 163, 184, 0.16);

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --sidebar-width: 255px;

    --radius: 14px;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 14px;
}

/* LINKS */

a {
    color: inherit;
    text-decoration: none;
}

/* HAUPTLAYOUT */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    padding: 30px;
}

/* SIDEBAR */

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #131e2c;
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 10px 12px 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
}

.sidebar-logo h2 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-logo span {
    color: var(--primary);
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-heading {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 10px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 4px;
    border-radius: 9px;
    color: var(--text-muted);
    transition: 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(22, 198, 209, 0.12);
    color: var(--primary-light);
}

.sidebar a.active {
    border-left: 3px solid var(--primary);
}

/* KOPFBEREICH */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 27px;
    font-weight: 750;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 6px;
}

/* KARTEN */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

/* DASHBOARD */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(145deg, #1c2c3e, #182536);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(22, 198, 209, 0.08);
    right: -25px;
    top: -25px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 25px;
    font-weight: 800;
}

.stat-description {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 8px;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #08232a;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface-hover);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: #062b15;
}

/* FORMULARE */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: #111b28;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 198, 209, 0.12);
}

.form-control::placeholder {
    color: #64748b;
}

/* TABELLEN */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    color: var(--text-muted);
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

/* STATUS */

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-success {
    background: rgba(34, 197, 94, 0.13);
    color: #4ade80;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.13);
    color: #fbbf24;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.13);
    color: #f87171;
}

/* HINWEISE */

.alert {
    padding: 14px 17px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.alert-success {
    background: rgba(34, 197, 94, 0.10);
    color: #4ade80;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.10);
    color: #f87171;
}

/* LOGIN */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 50% 20%,
        rgba(22, 198, 209, 0.13), transparent 45%),
        var(--bg);
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px;
    box-shadow: var(--shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-size: 23px;
    letter-spacing: 1px;
}

.login-logo span {
    color: var(--primary);
}

.login-logo p {
    color: var(--text-muted);
    margin-top: 8px;
}

/* HILFSKLASSEN */

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 15px 8px;
    }

    .sidebar-logo h2,
    .sidebar-heading,
    .sidebar a span {
        display: none;
    }

    .sidebar a {
        justify-content: center;
        padding: 14px 5px;
    }

    .main-content {
        margin-left: 70px;
        padding: 18px;
    }

    .stats-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 22px;
    }
}


/* SIDEBAR BRANDING */

.sidebar-logo {
    position: relative;
}

.brand-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16c6d1, #087e91);
    color: #08232a;
    font-weight: 900;
    font-size: 15px;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(22, 198, 209, 0.25);
}

.brand-subtitle {
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-top: 5px;
}

.sidebar-navigation {
    flex: 1;
}

.nav-icon {
    width: 22px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
}

.nav-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.nav-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 18px 10px 5px;
    margin-top: 15px;
}

.sidebar-version {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.sidebar-version-number {
    color: #64748b;
    font-size: 10px;
    margin-top: 8px;
}


/* =========================================
   DASHBOARD ERWEITERUNGEN
   ========================================= */

.dashboard-date {
    color: var(--text-muted);
    background: var(--surface);
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.date-icon {
    color: var(--primary);
    margin-right: 7px;
}

.welcome-panel {
    background: linear-gradient(115deg, #19394a, #172b3e 65%, #12313b);
    border: 1px solid rgba(22, 198, 209, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.welcome-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 13px;
}

.welcome-panel h2 {
    font-size: 25px;
    margin-bottom: 10px;
}

.welcome-panel p {
    color: #a9bdc9;
    line-height: 1.6;
    max-width: 550px;
}

.welcome-symbol {
    font-size: 65px;
    font-weight: 900;
    color: rgba(22, 198, 209, 0.25);
    padding: 10px 30px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 28px 0 16px;
}

.section-heading h2 {
    font-size: 17px;
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(22, 198, 209, 0.12);
    border-radius: 9px;
    font-size: 19px;
    font-weight: 800;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-top: 28px;
}

.quick-actions {
    display: flex;
    flex-direction: column;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 8px;
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}

.quick-action:last-child {
    border-bottom: none;
}

.quick-action:hover {
    background: rgba(22, 198, 209, 0.05);
    border-radius: 8px;
}

.quick-action-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 198, 209, 0.12);
    color: var(--primary);
    border-radius: 10px;
    font-size: 18px;
}

.quick-action strong,
.quick-action small {
    display: block;
}

.quick-action strong {
    font-size: 13px;
}

.quick-action small {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 4px;
}

.quick-arrow {
    margin-left: auto;
    color: var(--primary);
    font-size: 23px;
}

.system-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
}

.status-pending {
    background: var(--warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
}

.system-version {
    color: #64748b;
    font-size: 11px;
    margin-top: 22px;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 11px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 30px;
}

@media (max-width: 1000px) {
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .welcome-panel {
        padding: 22px;
    }

    .welcome-symbol {
        display: none;
    }

    .welcome-panel h2 {
        font-size: 20px;
    }

    .page-footer {
        flex-direction: column;
    }
}
