/*html * {*/
/*    font-size: 11pt;*/
/*    font-family: Hack, serif;*/
/*    color: #C8C8C8;*/
/*    background-color: #191919;*/
/*}*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: #121314;
    color: #e6e6e6;
    line-height: 1.5;
}

select, input {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1e1f22;
    color: #e6e6e6;
}

/* ===== LAYOUT ===== */

.container {
    max-width: 900px;
    margin: 100px auto 40px auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    height: 60px;
    background: rgba(30, 32, 34, 0.75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2c2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 50;
}

.navbar a {
    margin-right: 18px;
    text-decoration: none;
    color: #d2d2d2;
    font-weight: 500;
}

.navbar a:hover {
    color: #4da3ff;
}

.nav-right a:last-child {
    margin-right: 0;
}

/* ===== CARDS ===== */

.card {
    background: #1d1f21;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    margin-bottom: 25px;
    border: 1px solid #2a2c2e;
}

.card h2, .card h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.current-time {
    font-size: 1.4rem;
    font-weight: bold;
}

.row {
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.label {
    color: #cfcfcf;
}

.value {
    color: #ffffff;
    font-weight: 600;
    margin-left: 12px;
}

.remaining {
    text-align: right;
    color: #9aa0a6;
    font-size: 0.85rem;
    margin: -4px 0 10px 0; /* zieht es näher an die Hauptzeit */
    padding-right: 2px;
}

/* ===== GRID ===== */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media(max-width: 700px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== STATUS COLORS ===== */

.positive {
    color: #7ddc7d;
    font-weight: bold;
}

.negative {
    color: #ff6b82;
    font-weight: bold;
}

/* ===== NEWS ===== */

.news {
    border-left: 6px solid #4da3ff;
}

/* ===== LINKS IN CONTENT ===== */

a {
    color: #4da3ff;
}

a:hover {
    color: #6bb7ff;
}

/* ===== STATS ===== */

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

/* Year Selector */
.stats-year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stats-year-selector select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1e1f22;
    color: #e6e6e6;
    font-weight: 500;
}

/* Info Card */
.stats-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

/* Graph Card */
.stats-graph img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #444;
}

/* Form Card */
.stats-form .glz-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.stats-form .form-row {
    display: flex;
    flex-direction: column;
}

.stats-form input[type="date"] {
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1e1f22;
    color: #e6e6e6;
}

.stats-form .form-actions {
    flex-basis: 100%;
}

.stats-form button.btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background: #4da3ff;
    color: #1b1c1e;
    transition: background 0.2s;
}

.stats-form button.btn:hover {
    background: #73b7ff;
}

/* ===== SETTINGS ===== */

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

/* Section headers */
.settings-section h3 {
    color: #4da3ff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Links inside cards */
.settings-link {
    display: block;
    color: #73b7ff;
    margin-bottom: 5px;
    text-decoration: none;
}

.settings-link:hover {
    text-decoration: underline;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ===== EXPORT ===== */

.export-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.export-card {
    background-color: #2a2b2e;
    border-radius: 12px;
    padding: 20px 25px;
    width: 400px;
    color: #e6e6e6;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.export-card h3 {
    color: #4da3ff;
    margin-bottom: 15px;
    text-align: center;
}

.export-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-actions {
    margin-top: 10px;
}

.form-actions .btn {
    width: 100%;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background: #4da3ff;
    color: #1b1c1e;
    transition: background 0.2s;
}

.form-actions .btn:hover {
    background: #73b7ff;
}

.note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* ===== CALCTYPE EDIT ===== */

.calctype-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.calctype-card {
    background-color: #2a2b2e;
    border-radius: 12px;
    padding: 20px 25px;
    width: 400px;
    color: #e6e6e6;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.calctype-card h3 {
    color: #4da3ff;
    margin-bottom: 15px;
    text-align: center;
}

.calctype-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.daytype-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.daytype-card {
    background-color: #2a2b2e;
    border-radius: 12px;
    padding: 20px 25px;
    width: 450px;
    color: #e6e6e6;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.daytype-card h3 {
    color: #4da3ff;
    margin-bottom: 15px;
    text-align: center;
}

/* Form layout */
.daytype-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-user-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.admin-user-card {
    background-color: #2a2b2e;
    border-radius: 12px;
    padding: 20px 25px;
    width: 550px;
    color: #e6e6e6;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.admin-user-card h3 {
    color: #4da3ff;
    margin-bottom: 8px;
    text-align: center;
}

.admin-user-card p {
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
}

/* Form layout */
.admin-user-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-title {
    color: #4da3ff;
    text-align: center;
    margin-bottom: 20px;
}

.bugtracker-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.bug-card {
    background-color: #2a2b2e;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    color: #e6e6e6;
}

.bug-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 10px;
}

.bug-id {
    color: #4da3ff;
}

.bug-meta {
    font-size: 0.85rem;
    color: #aaa;
}

.bug-content {
    margin-bottom: 15px;
}

.bug-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.bug-actions input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #4da3ff;
}

.bug-actions .btn-danger {
    padding: 6px 14px;
    background-color: #fc618d;
    color: #1b1c1e;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.bug-actions .btn-danger:hover {
    background-color: #ff83a7;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-color: #1b1c1e;
    padding: 0;
    margin: 0;
}

.login-card {
    background-color: #2a2b2e;
    padding: 30px 25px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
    color: #e6e6e6;
    text-align: center;
    margin-bottom: 10px;
}

.login-card h2 {
    color: #4da3ff;
    margin-bottom: 20px;
}

.login-form .form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.login-form label {
    min-width: 90px;
    text-align: left;
    color: #ccc;
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #1e1f22;
    color: #e6e6e6;
    flex: 1;
}

/* ===== POPUP OVERLAY ===== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

/* ===== POPUP WINDOW ===== */

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 90%);
    max-height: 90vh;
    overflow-y: auto;
    background: #1e1f22;
    border: 1px solid #2c2d30;
    border-radius: 12px;
    padding: 24px;
    color: #e6e6e6;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* Scrollbar styling */
.popup::-webkit-scrollbar {
    width: 8px;
}
.popup::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

/* ===== CLOSE BUTTON ===== */

.popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #aaa;
}
.popup-close:hover {
    color: #fff;
}

.link-emoji {
    text-decoration: none;
}

/* Textarea */
textarea {
    width: 100%;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #444;
    background: #1e1f22;
    color: #e6e6e6;
}

/* Buttons */
.btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    max-height: max-content;
}

.btn-movedown {
    margin-top: 28px;
}

.btn-primary { background: #4da3ff; color: #1b1c1e; }
.btn-primary:hover { background: #73b7ff; }

.btn-success { background: #7ddc7d; color: #1b1c1e; }
.btn-success:hover { background: #9fe394; }

.btn-danger { background: #ff6b82; color: #1b1c1e; }
.btn-danger:hover { background: #ff8aa0; }