/* RESET */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fb;
}

/* LAYOUT */
.layout {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #1e293b;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    margin-bottom: 30px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #334155;
    color: white;
}

/* USER */
.user {
    margin-top: auto;
    font-size: 14px;
}

.user a {
    color: #38bdf8;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

th {
    background: #334155;
    color: white;
    text-align: left;
}

td, th {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* BUTTON */
button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* INPUT */
input, select {
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* STATUS COLORS */
.row-red { background: #ffe5e5; }
.row-yellow { background: #fff8cc; }
.row-green { background: #e6ffed; }
.row-orange { background: #fff1e6; }


.logo {
    width: 100px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.user {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
}

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

.logout {
    font-size: 22px;
    text-decoration: none;
    transition: 0.2s;
}

.logout:hover {
    transform: scale(1.2);
}

/* LOGIN PAGE */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #0f172a; /* dunkler Hintergrund */
}

/* LOGIN BOX */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 14px;
    width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* LOGO */
.login-logo {
    width: 100px;
    margin-bottom: 20px;
}

/* INPUTS */
.login-box input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* BUTTON */
.login-box button {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.login-box button:hover {
    background: #1d4ed8;
}