﻿:root {
    color-scheme: light;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
    background: #f2f2f2;
}

/* Κεντράρισμα αν υπάρχει η φόρμα .fist-f */
@supports selector(:has(*)) {
    :root:has(.fist-f) body {
        min-height: 100svh;
        display: grid;
        place-items: center;
    }
}
/* Fallback χωρίς :has() */
@supports not selector(:has(*)) {
    .fist-f {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Κάρτα */
.fist-f {
    box-sizing: border-box;
    width: min(90vw, 320px);
    padding: 48px 28px 36px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
    margin: 0;
    text-align: center;
}

    /* Λογότυπο */
    .fist-f > img {
        width: 220px;
        height: auto;
        margin: 0 auto 12px;
        display: block;
    }

/* Input */
.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.4;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control::placeholder {
    color: #9aa1a7;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .15rem rgba(13,110,253,.25);
}

/* Spacing */
.mb-3 {
    margin-bottom: 0.9rem;
}

/* Button */
.login-button {
    display: inline-block;
    width: 100%;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 16px;
    border: 0;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(13,110,253,.25);
    transition: transform .02s ease-in, filter .15s ease;
}

.login-button:hover {
    filter: brightness(1.02);
}

.login-button:active {
    transform: translateY(1px);
}

.login-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.detail-box {
    border: 1px solid #e3e3e3;
    padding: 10px 15px;
    border-radius: 6px;
    background: #fafafa;
    height: 100%;
}

.detail-label {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: #333;
}

/* Σταθερό μέγεθος κουμπιού = σταθερή θέση σημαίας */
.lang-flag-btn {
    width: 44px; /* ΣΤΑΘΕΡΟ πλάτος */
    height: 32px; /* λίγο μεγαλύτερο για καλύτερο centering */
    padding: 0;
}

/* Προστασία για το μέγεθος της σημαίας */
.lang-flag-img {
    width: 22px;
    height: auto;
}

.btn-primary {
    background-color: #08293F !important;
    border-color: #08293F !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #0d3a5c !important;
        border-color: #0d3a5c !important;
    }

.btn-outline-primary {
    color: #08293F !important;
    border-color: #08293F !important;
}

.btn-outline-primary:hover {
    background-color: #08293F !important;
    color: white !important;
}

.modal-wide {
    max-width: 95vw;
}

.lf-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #dee2e6; /* bootstrap gray */
}

.lf-box:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

.lf-label {
    width: 220px; /* ό,τι πλάτος θες */
    flex-shrink: 0; /* να μην μικραίνει */
    font-weight: 600;
}

.lf-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.delay-table {
    table-layout: fixed;
    width: 100%;
}

/* ΚΑΘΥΣΤΕΡΗΣΗ */
.delay-table th:nth-child(1),
.delay-table td:nth-child(1) {
    width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ΒΑΡΔΙΑ */
.delay-table th:nth-child(2),
.delay-table td:nth-child(2) {
    width: 140px;
}

/* ΗΜΕΡΟΜΗΝΙΑ */
.delay-table th:nth-child(3),
.delay-table td:nth-child(3) {
    width: 140px;
}

/* ΧΡΟΝΟΣ */
.delay-table th:nth-child(4),
.delay-table td:nth-child(4) {
    width: 160px;
    text-align: right;
}

/* ΣΧΟΛΙΑ → παίρνει όλο το υπόλοιπο */
.delay-table th:nth-child(5),
.delay-table td:nth-child(5) {
    white-space: normal;
}

