@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    /* Updated palette: pick colors to match logo (cyan + pink accents on dark background)
       Change these variables if your logo uses other colors. */
    --bg-color: #0f1720;
    /* Sehr dunkler Hintergrund */
    --surface-color: #111827;
    /* Karten- und Sidebar-Hintergrund */
    --text-color: #e6eef3;
    /* leichtes Off-White für Text */
    --primary-color: #25F4EE;
    /* Cyan - Hauptakzent (ähnlich TikTok-Cyan) */
    --accent-color: #FE2C55;
    /* Pink/Rot - Sekundärer Akzent */
    --success-color: #4caf50;
    --error-color: #f44336;
    --border-radius: 8px;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Dashboard Container --- */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background-color: var(--surface-color);
    padding: 20px 0;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding: 0 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.logo .material-icons {
    font-size: 2rem;
    margin-right: 10px;
}

/* Logo image styling */
.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 14px;
    display: inline-block;
}

nav ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 700;
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--accent-color);
}

.nav-item .material-icons {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    padding: 30px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--surface-color);
}

.user-info {
    display: flex;
    align-items: center;
}

/* Status Indicator */
.status-indicator {
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.status-indicator.active {
    background-color: var(--success-color);
}

.status-indicator.inactive {
    background-color: var(--error-color);
}

/* --- Cards (Übersicht) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--surface-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Styling for Next Run large/small display */
.next-run-card .next-run-large {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.next-run-card .next-run-small {
    font-size: 0.9rem;
    color: #666;
    margin-top: 6px;
}

.status-card h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.status-card p {
    font-size: 2.5rem;
    font-weight: 700;
}

/* --- Aktivitäten Liste --- */
#activity-list {
    list-style: none;
    padding: 0;
    height: calc(100vh - 140px);
    /* Fill screen height */
    overflow-y: auto;
}

#activity-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

#activity-list li:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--primary-color);
    margin-right: 10px;
    font-weight: 700;
}

/* --- Settings/Logs Sektionen --- */
.content-area.hidden {
    display: none;
}

.settings-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--primary-color);
}

input[type="time"],
input[type="number"],
#full-logs {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

#full-logs {
    min-height: 400px;
    resize: vertical;
    font-family: monospace;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    font-weight: 700;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.primary-btn:hover {
    opacity: 0.9;
}

/* --- Responsiveness (Optional, aber empfohlen) --- */
@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .sidebar nav {
        display: none;
        /* Verstecke Nav auf kleinen Bildschirmen für saubere Ansicht */
    }

    /* Optional: Hamburger-Menü hier einfügen, falls gewünscht */

    .logo {
        padding: 10px 20px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header h1 {
        margin-bottom: 10px;
    }

    /* --- Styling für die NEUE Last Upload Card --- */

    .last-upload-card {
        border-left: 5px solid var(--accent-color);
        /* Vertikale Leiste wie in Discord */
        padding: 15px 20px;
    }

    .card-header-user {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .card-header-user h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .card-header-user .status-indicator {
        margin-left: 15px;
        background-color: var(--success-color);
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .upload-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Standardmäßig zwei Spalten */
        gap: 15px 30px;
        margin-bottom: 20px;
    }

    .detail-group.full-row {
        grid-column: 1 / -1;
        /* Nimmt die volle Breite ein */
    }

    .detail-label {
        display: block;
        font-weight: 400;
        font-size: 0.8rem;
        color: var(--primary-color);
        /* Etikettenfarbe */
        margin-bottom: 3px;
        text-transform: uppercase;
    }

    .detail-value {
        margin: 0;
        font-size: 0.95rem;
        white-space: pre-wrap;
        /* Behält Formatierungen bei */
        word-break: break-word;
    }

    .detail-value.tags {
        font-size: 0.85rem;
        color: #ccc;
        /* Etwas heller für die Tag-Masse */
    }

    .upload-links {
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 15px;
    }

    .link-label {
        font-weight: 700;
        margin-right: 5px;
        color: var(--primary-color);
    }

    .upload-links a {
        color: var(--primary-color);
        text-decoration: none;
        margin-right: 20px;
        transition: color 0.2s;
    }

    .upload-links a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

    .upload-footer {
        font-size: 0.75rem;
        color: #aaa;
        text-align: right;
    }
}

/* Styling für das klickbare Icon-Link in der Upload-Card */
.icon-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-link svg {
    width: 1.2rem;
    /* passt zu den Material-Icons in der Sidebar */
    height: 1.2rem;
    display: inline-block;
    vertical-align: middle;
}

/* Entferne das Standard-Fokus-/Highlighting (wenn du Tastatur-Fokus benötigst, passe hier an) */
.icon-link:focus,
.icon-link:active,
.icon-link:hover {
    outline: none;
    box-shadow: none;
}