/* ---- Globales Grundlayout ---- */
html, body {
    height: 100%;
}

body {
    background: radial-gradient(circle at 60% 40%, #21314b 0%, #13151a 90%);
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: background 0.4s;
    overflow-x: hidden;
    color: #eaf0fa;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    text-align: center;
    padding: 0rem 1rem;
    background: rgba(13,18,34,0.92);
    color: #b5badb;
    font-size: 0.85em;
    border-top: 1px solid #222d47;
}

/* ---- Login ---- */
.login-container {
    background: rgba(30,32,42,0.92);
    border-radius: 18px;
    box-shadow: 0 8px 38px rgba(25,28,45,0.22);
    padding: 2rem 2.2rem 1.6rem 2.2rem;
    width: 100%;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: background 0.3s;
    margin: auto;
    position: relative;
    z-index: 5;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #eaf0fa;
    text-align: center;
    margin-bottom: 1.3rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

label {
    font-size: 1.04rem;
    color: #c6d2e2;
    font-weight: 400;
    margin-bottom: 0.1rem;
}

input[type="text"], input[type="password"] {
    padding: 0.66rem 0.98rem;
    border: 1.2px solid #334160;
    border-radius: 8px;
    font-size: 1.01rem;
    background: #212a3a;
    color: #f3f7fa;
    transition: border 0.19s, background 0.19s;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #3b82f6;
    outline: none;
    background: #20293a;
}

.login-btn {
    display: block;
    margin: 1.2rem auto 0 auto;
    background: linear-gradient(90deg, #4076e0 0%, #52a6ff 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.95rem 0;
    width: 82%;
    font-size: 1.12rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(65,135,245,0.10);
    transition: background 0.18s, box-shadow 0.15s;
    letter-spacing: 0.01em;
}

.login-btn:hover {
    background: linear-gradient(90deg, #3687ff 0%, #2977df 100%);
    box-shadow: 0 4px 24px rgba(80,175,255,0.13);
}

/* Responsive für Login */
@media (max-width: 500px) {
    .login-container {
        width: 90vw;
        max-width: 340px;
        padding: 1.2rem 1rem 1rem 1rem;
    }
    .login-title {
        font-size: 1.08rem;
    }
}

/* ---- Navigation ---- */
.nav-bar {
    width: 100vw;
    background: rgba(13,18,34,0.92);
    color: #eaf0fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.2rem 0.8rem 1.7rem;
    box-shadow: 0 2px 16px rgba(16,20,34,0.22);
    border-bottom: 1.5px solid #222d47;
    min-height: 60px;
    box-sizing: border-box;
    z-index: 10;
}

.nav-title {
    font-size: 1.29rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e9f3ff;
    user-select: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1.0rem;
}

.user-dropdown {
    position: relative;
}

.user-badge {
    background: none;
    color: #b5badb;
    font-size: 1.05rem;
    padding: 0.13rem 0.7rem 0.13rem 0.3rem;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.44em;
    user-select: text;
    cursor: pointer;
}

.user-icon {
    width: 1.13em;
    height: 1.13em;
    margin-right: 0.18em;
    vertical-align: middle;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(20, 25, 38, 0.98);
    border: 1px solid #2f3b50;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    padding: 0.4rem 0;
    display: none;
    white-space: nowrap;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #eaf0fa;
    text-align: right;
    text-decoration: none;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: rgba(70, 90, 130, 0.2);
}


/* ---- Dashboard ---- */
.dashboard-container {
    max-width: 700px;
    width: 95vw;
    margin: 4rem auto 0 auto;
    padding: 2.2rem 1.7rem 1.4rem 1.7rem;
    background: rgba(30,32,42,0.97);
    border-radius: 18px;
    box-shadow: 0 8px 38px rgba(25,28,45,0.13);
    color: #eaf0fa;
    box-sizing: border-box;
    text-align: left;
}

.dashboard-container h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: #b4cefa;
    letter-spacing: 0.01em;
}

.dashboard-section h2 {
    font-size: 1.13rem;
    color: #7ec1fa;
    margin-bottom: 0.7rem;
    margin-top: 1.2rem;
    font-weight: 600;
}
.dashboard-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.dashboard-section li {
    margin-bottom: 0.7rem;
    font-size: 1.08rem;
}
.dashboard-section a {
    color: #4da2ff;
    text-decoration: none;
    transition: color 0.18s;
}
.dashboard-section a:hover {
    color: #a3b5e3;
}


/* ---- Fehler-/Popup-Stil ---- */
.popup-error {
    position: fixed;
    top: 2.3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(220, 50, 47, 0.98);
    color: #fff;
    padding: 1rem 2.2rem 1rem 2rem;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(220,50,47,0.09);
    font-size: 1.10rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s;
    animation: popupIn 0.35s cubic-bezier(.33,1.13,.53,1.05);
    letter-spacing: 0.02em;
}
@keyframes popupIn {
    0% { transform: translateX(-50%) translateY(-50px); opacity: 0; }
    100% { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ---- Responsive Anpassungen ---- */
@media (max-width: 1400px) {
    .tracking-panel { max-width: 99vw; }
}
@media (max-width: 800px) {
    .tracking-panel { padding: 1.2rem 0.5rem; }
    .tracking-table { font-size: 0.93em; }
    .tracking-table td.user-agent { max-width: 120px; }
}