/* =========================================================
   ADMIN
   ========================================================= */

.admin-layout {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;

    display: flex;
    flex-direction: column;

    padding: 30px 16px;

    background: #161616;
    border-right: 1px solid #292929;
}

.sidebar-header {
    padding: 0 12px;
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 600;
}

.sidebar-subtitle {
    margin-top: 4px;
    color: #777;
    font-size: 13px;
}

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

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 12px;

    color: #888;
    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-item span {
    width: 18px;
    text-align: center;
}

.nav-item:hover {
    color: #fff;
    background: #202020;
}

.nav-item.active {
    color: #fff;
    background: #242424;
}

.sidebar-bottom {
    margin-top: auto;
}


/* =========================================================
   MAIN
   ========================================================= */

.admin-main {
    width: calc(100% - 240px);
    margin-left: 240px;
    padding: 50px;
}

.admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 50px;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 500;
}

.admin-header p {
    margin-top: 6px;
    color: #777;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #aaa;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: #22c55e;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.admin-section {
    max-width: 1100px;
    margin-bottom: 45px;
}

.admin-section h2 {
    margin-bottom: 16px;

    font-size: 19px;
    font-weight: 500;
}


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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding: 20px;

    background: #1b1b1b;
    border: 1px solid #292929;
    border-radius: 10px;
}

.stat-label {
    color: #777;
    font-size: 13px;
}

.stat-card strong {
    font-size: 20px;
    font-weight: 500;
}


/* =========================================================
   PROGRESS BARS
   ========================================================= */

.progress-bar {
    width: 100%;
    height: 6px;

    margin-top: 12px;

    background: rgba(255, 255, 255, 0.08);

    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;

    background: currentColor;

    border-radius: inherit;

    transition: width 0.4s ease;
}

.stat-detail {
    display: block;

    margin-top: 8px;

    font-size: 0.8rem;
    opacity: 0.55;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.action-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 20px;

    text-align: left;
    color: #fff;

    background: #1b1b1b;
    border: 1px solid #292929;
    border-radius: 10px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.action-card:hover {
    background: #222;
    border-color: #3a3a3a;

    transform: translateY(-2px);
}

.action-icon {
    color: #aaa;
    font-size: 20px;
}

.action-card strong {
    display: block;

    font-size: 14px;
    font-weight: 500;
}

.action-card p {
    margin-top: 6px;

    color: #777;

    font-size: 12px;
    line-height: 1.4;
}


/* =========================================================
   LISTS
   ========================================================= */

.list-card {
    overflow: hidden;

    background: #1b1b1b;
    border: 1px solid #292929;
    border-radius: 10px;
}

.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 17px 20px;

    border-bottom: 1px solid #292929;
}

.list-row:last-child {
    border-bottom: none;
}

.list-row strong {
    display: block;

    font-size: 14px;
    font-weight: 500;
}

.list-row > div > span {
    display: block;

    margin-top: 4px;

    color: #666;
    font-size: 12px;
}


/* =========================================================
   ROW RIGHT
   ========================================================= */

.row-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.row-right a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.row-right a:hover {
    color: #fff;
}


/* =========================================================
   SERVICE STATUS
   ========================================================= */

.service-status {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #aaa;
    font-size: 13px;
}

.status-online {
    color: #22c55e !important;
}

.status-offline {
    color: #ef4444 !important;
}


/* =========================================================
   SERVICE ARROW
   ========================================================= */

.service-arrow {
    display: inline-flex;
    align-items: center;

    color: #777;

    font-size: 50px;
    line-height: 1;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.service-arrow:hover {
    color: #fff;
    transform: translateX(2px);
}


/* =========================================================
   SERVICE CATEGORIES
   ========================================================= */

.service-category-title {
    margin-top: 25px;
    margin-bottom: 12px;

    color: #aaa;

    font-size: 14px;
    font-weight: 500;
}

.gameserver-title {
    margin-top: 30px;
}


/* =========================================================
   GAME SERVERS
   ========================================================= */

.game-address {
    color: #777;
    font-size: 13px;
}


/* =========================================================
   LOADING
   ========================================================= */

.loading {
    padding: 24px;

    text-align: center;

    opacity: 0.5;
}


/* =========================================================
   LOGS
   ========================================================= */

.log-row {
    display: grid;
    grid-template-columns: 80px 1fr 180px;

    align-items: center;

    padding: 15px 20px;

    border-bottom: 1px solid #292929;

    font-size: 13px;
}

.log-row:last-child {
    border-bottom: none;
}

.log-row > span:first-child {
    color: #666;
}

.log-success {
    color: #22c55e;
}

.log-error {
    color: #ef4444;
}

/* =========================================================
   LOGS FOOTER
   ========================================================= */

.logs-footer {
    display: flex;
    justify-content: flex-end;
    padding: 14px 20px;
    border-top: 1px solid #292929;
}

.logs-link {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.logs-link:hover {
    color: #fff;
}


/* =========================================================
   FULL LOGS
   ========================================================= */

.full-logs-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.full-log-card {
    overflow: hidden;

    background: #1b1b1b;

    border: 1px solid #292929;

    border-radius: 10px;
}


.full-log-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 17px 20px;

    border-bottom: 1px solid #292929;

}


.full-log-header strong {

    display: block;

    font-size: 14px;

    font-weight: 500;

}


.full-log-header span {

    display: block;

    margin-top: 4px;

    color: #666;

    font-size: 12px;

}


.full-log-header > span {

    margin-top: 0;

    font-size: 13px;

}


.log-content {

    box-sizing: border-box;

    width: 100%;

    max-height: 500px;

    margin: 0;

    padding: 20px;

    overflow: auto;

    color: #aaa;

    background: #141414;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 12px;

    line-height: 1.6;

    white-space: pre;

}


/* =========================================================
   LOG STATUS
   ========================================================= */

.log-neutral {
    color: #888 !important;
}

.log-error {
    color: #ef4444 !important;
}

.log-success {
    color: #22c55e !important;
}


/* =========================================================
   REFRESH BUTTON
   ========================================================= */

.logs-refresh {

    padding: 9px 14px;

    color: #aaa;

    background: #1b1b1b;

    border: 1px solid #292929;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;

}


.logs-refresh:hover {

    color: #fff;

    background: #242424;

    border-color: #3a3a3a;

}

/* =========================================================
   STORAGE
   ========================================================= */

.storage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.storage-card {
    padding: 20px;

    background: #1b1b1b;
    border: 1px solid #292929;
    border-radius: 10px;
}

.storage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.storage-header strong {
    display: block;

    font-size: 14px;
    font-weight: 500;
}

.storage-header span {
    display: block;

    margin-top: 4px;

    color: #666;
    font-size: 12px;
}

.storage-header > span {
    color: #aaa;
    font-size: 13px;
}

.storage-card .progress-bar {
    margin-top: 16px;
}

.storage-details {
    margin-top: 10px;

    color: #777;
    font-size: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.admin-footer {
    max-width: 1100px;

    padding-top: 10px;
    padding-bottom: 30px;

    color: #555;
    font-size: 12px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .sidebar {
        position: static;

        width: 100%;
        height: auto;
    }

    .admin-layout {
        display: block;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;

        padding: 30px 20px;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar-bottom {
        margin-top: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .storage-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .admin-header {
        flex-direction: column;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-row {
        align-items: flex-start;
        gap: 15px;
    }

    .row-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .log-row {
        grid-template-columns: 60px 1fr;
        gap: 5px;
    }

    .log-row > span:last-child {
        grid-column: 2;
    }
}

/* =========================================================
   LOGIN
   ========================================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
    padding: 30px;
    background: #1b1b1b;
    border: 1px solid #292929;
    border-radius: 10px;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
}

.login-header p {
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}

.login-card form {
    display: flex;
    flex-direction: column;
}

.login-card label {
    margin-bottom: 8px;
    color: #aaa;
    font-size: 13px;
}

.login-card input {
    padding: 12px 13px;
    color: #fff;
    background: #141414;
    border: 1px solid #292929;
    border-radius: 7px;
    outline: none;
    font-size: 14px;
}

.login-card input:focus {
    border-color: #444;
}

.login-card button {
    margin-top: 16px;
    padding: 12px;
    color: #fff;
    background: #292929;
    border: 1px solid #353535;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.login-card button:hover {
    background: #353535;
}

.login-back {
    display: block;
    margin-top: 20px;
    color: #666;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
}

.login-back:hover {
    color: #aaa;
}

/* =========================================================
   ACCESS / BEKANNTE IPs
   ========================================================= */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.section-header .service-category-title {
    margin: 0;
}

.section-subtitle {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}


/* =========================================================
   ZEITRAUM AUSWAHL
   ========================================================= */

.time-range-select {
    padding: 8px 30px 8px 11px;

    color: #aaa;
    background: #1b1b1b;

    border: 1px solid #292929;
    border-radius: 7px;

    outline: none;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.time-range-select:hover {
    color: #fff;
    background: #222;
    border-color: #3a3a3a;
}

.time-range-select:focus {
    border-color: #444;
}


/* =========================================================
   IP LISTE
   ========================================================= */

.known-ips-list {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   IP HEADER
   ========================================================= */

.known-ips-header {
    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        180px
        120px
        90px;

    gap: 20px;

    padding: 11px 20px;

    color: #555;

    background: #181818;

    border-bottom: 1px solid #292929;

    font-size: 10px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.known-ips-header > span:nth-child(2),
.known-ips-header > span:nth-child(3),
.known-ips-header > span:nth-child(4) {
    text-align: right;
}


/* =========================================================
   IP ROW
   ========================================================= */

.known-ip-row {
    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        180px
        120px
        90px;

    align-items: center;

    gap: 20px;

    min-height: 68px;

    padding: 14px 20px;

    border-bottom: 1px solid #292929;

    transition:
        background 0.15s ease;
}

.known-ip-row:last-child {
    border-bottom: none;
}

.known-ip-row:hover {
    background: #202020;
}


/* =========================================================
   IP + STANDORT
   ========================================================= */

.known-ip-info {
    min-width: 0;
}

.known-ip-address {
    display: block;

    color: #ddd;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 13px;
}

.known-ip-location {
    display: block;

    margin-top: 5px;

    color: #666;

    font-size: 11px;
}


/* =========================================================
   LETZTER ZUGRIFF
   ========================================================= */

.known-ip-last {
    color: #aaa;
    font-size: 12px;
    text-align: right;
}

.known-ip-label {
    display: block;

    margin-bottom: 4px;

    color: #555;

    font-size: 10px;
}


/* =========================================================
   REQUESTS
   ========================================================= */

.known-ip-requests {
    text-align: right;
}

.known-ip-requests strong {
    display: block;

    color: #aaa;

    font-size: 13px;
    font-weight: 500;
}

.known-ip-requests span {
    display: block;

    margin-top: 3px;

    color: #555;

    font-size: 10px;
}


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

.known-ip-active {
    display: inline-flex;

    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    width: 100%;

    color: #22c55e;

    font-size: 11px;
}

.known-ip-active-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #22c55e;
}


/* =========================================================
   INAKTIV
   ========================================================= */

.known-ip-inactive {
    color: #666;
}

.known-ip-inactive-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #555;
}


/* =========================================================
   ACCESS MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .time-range-select {
        width: 100%;
    }

    .known-ips-header {
        display: none;
    }

    .known-ip-row {
        grid-template-columns: 1fr auto;
        gap: 10px 15px;

        padding: 16px;
    }

    .known-ip-last {
        text-align: right;
    }

    .known-ip-requests {
        text-align: left;
    }

    .known-ip-active {
        justify-content: flex-start;
    }
}
/* =========================================================
   BEKANNTE IPs – SCROLLBEREICH
   ========================================================= */

.known-ips-list {
    max-height: 420px;
    overflow-y: auto;
}

/* Schmaler Scrollbalken */

.known-ips-list::-webkit-scrollbar {
    width: 6px;
}

.known-ips-list::-webkit-scrollbar-track {
    background: transparent;
}

.known-ips-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 999px;
}

.known-ips-list::-webkit-scrollbar-thumb:hover {
    background: #444;
}
/* =========================================================
   ACCESS / BEKANNTE IPs
   ========================================================= */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 12px;
}

.section-header .service-category-title {
    margin: 0;
}

.section-subtitle {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}


/* =========================================================
   ZEITRAUM AUSWAHL
   ========================================================= */

.time-range-select {
    padding: 8px 30px 8px 11px;

    color: #aaa;
    background: #1b1b1b;

    border: 1px solid #292929;
    border-radius: 7px;

    outline: none;

    font-family: inherit;
    font-size: 12px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.time-range-select:hover {
    color: #fff;
    background: #222;
    border-color: #3a3a3a;
}

.time-range-select:focus {
    border-color: #444;
}


/* =========================================================
   BEKANNTE IPs – SCROLLBEREICH
   ========================================================= */

.known-ips-list {
    display: flex;
    flex-direction: column;

    max-height: 420px;

    overflow-y: auto;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.known-ips-list::-webkit-scrollbar {
    width: 6px;
}

.known-ips-list::-webkit-scrollbar-track {
    background: transparent;
}

.known-ips-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 999px;
}

.known-ips-list::-webkit-scrollbar-thumb:hover {
    background: #444;
}


/* =========================================================
   IP HEADER
   ========================================================= */

.known-ips-header {
    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        180px
        120px;

    gap: 20px;

    padding: 11px 20px;

    color: #555;
    background: #181818;

    border-bottom: 1px solid #292929;

    font-size: 10px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* =========================================================
   SORTIER-BUTTONS
   ========================================================= */

.ip-sort-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 5px;

    padding: 0;

    color: #555;
    background: none;

    border: none;

    font-family: inherit;
    font-size: 10px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.06em;

    cursor: pointer;

    transition: color 0.2s ease;
}

.ip-sort-button:hover {
    color: #aaa;
}

.ip-sort-button:focus {
    outline: none;
    color: #fff;
}

.sort-arrow {
    min-width: 12px;

    color: #777;

    font-size: 11px;
}


/* =========================================================
   IP ROW
   ========================================================= */

.known-ip-row {
    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        180px
        120px;

    align-items: center;

    gap: 20px;

    min-height: 68px;

    padding: 14px 20px;

    border-bottom: 1px solid #292929;

    transition:
        background 0.15s ease;
}

.known-ip-row:last-child {
    border-bottom: none;
}

.known-ip-row:hover {
    background: #202020;
}


/* =========================================================
   IP + STANDORT
   ========================================================= */

.known-ip-info {
    min-width: 0;
}

.known-ip-address {
    display: block;

    color: #ddd;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 13px;
}

.known-ip-location {
    display: block;

    margin-top: 5px;

    color: #666;

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   LETZTER ZUGRIFF
   ========================================================= */

.known-ip-last {
    color: #aaa;

    font-size: 12px;

    text-align: right;
}


/* =========================================================
   REQUESTS
   ========================================================= */

.known-ip-requests {
    text-align: right;
}

.known-ip-requests strong {
    display: block;

    color: #aaa;

    font-size: 13px;
    font-weight: 500;
}

.known-ip-requests span {
    display: block;

    margin-top: 3px;

    color: #555;

    font-size: 10px;
}


/* =========================================================
   ACCESS / LETZTE ZUGRIFFE
   ========================================================= */

#recent-access-list {
    max-height: 420px;

    overflow-y: auto;
}


/* =========================================================
   SCROLLBAR – LETZTE ZUGRIFFE
   ========================================================= */

#recent-access-list::-webkit-scrollbar {
    width: 6px;
}

#recent-access-list::-webkit-scrollbar-track {
    background: transparent;
}

#recent-access-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 999px;
}

#recent-access-list::-webkit-scrollbar-thumb:hover {
    background: #444;
}


/* =========================================================
   ACCESS ROW
   ========================================================= */

.access-row {
    display: grid;

    grid-template-columns:
        90px
        1fr
        auto;

    align-items: center;

    gap: 20px;

    padding: 15px 20px;

    border-bottom: 1px solid #292929;
}

.access-row:last-child {
    border-bottom: none;
}


/* =========================================================
   ZEIT
   ========================================================= */

.access-time {
    color: #666;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 12px;
}


/* =========================================================
   INFORMATIONEN
   ========================================================= */

.access-info {
    min-width: 0;
}

.access-info strong {
    display: block;

    color: #aaa;

    font-size: 13px;
    font-weight: 500;
}

.access-info span {
    display: block;

    margin-top: 3px;

    color: #666;

    font-size: 12px;
}

.access-info small {
    display: block;

    margin-top: 3px;

    color: #555;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   ACCESS STATUS
   ========================================================= */

.access-status {
    min-width: 42px;

    padding: 4px 8px;

    color: #aaa;

    text-align: center;

    background: #242424;

    border-radius: 5px;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 11px;
}

.access-status-success {
    color: #22c55e;
}

.access-status-info {
    color: #60a5fa;
}

.access-status-warning {
    color: #f59e0b;
}

.access-status-error {
    color: #ef4444;
}


/* =========================================================
   ACCESS MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .time-range-select {
        width: 100%;
    }


    /* Bekannte IPs */

    .known-ips-header {
        display: none;
    }

    .known-ip-row {
        grid-template-columns:
            1fr
            auto;

        gap: 10px 15px;

        padding: 16px;
    }

    .known-ip-last {
        text-align: right;
    }

    .known-ip-requests {
        text-align: left;
    }


    /* Letzte Zugriffe */

    .access-row {
        grid-template-columns:
            60px
            1fr
            auto;

        gap: 10px;
        padding: 14px 16px;
    }

}

/* ============================================================
   IP CONTROLS
   ============================================================ */

.ip-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ============================================================
   CRITICAL FILTER
   ============================================================ */

.critical-filter {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 12px;

    border: 1px solid var(--border-color);
    border-radius: 8px;

    background: var(--card-background);

    font-size: 13px;
    color: var(--text-secondary);

    cursor: pointer;

    user-select: none;
}

.critical-filter:hover {
    background: var(--hover-background);
}

.critical-filter input {
    margin: 0;

    width: 15px;
    height: 15px;

    cursor: pointer;
}


/* ============================================================
   KNOWN IPS HEADER
   ============================================================ */

.known-ips-header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        120px;

    align-items: center;

    padding: 13px 18px;

    border-bottom: 1px solid var(--border-color);

    font-size: 12px;
    font-weight: 600;

    color: var(--text-secondary);
}


/* ============================================================
   SORT BUTTONS
   ============================================================ */

.ip-sort-button {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    padding: 0;

    border: none;

    background: none;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.ip-sort-button:hover {
    color: var(--text-primary);
}

.ip-sort-button.active {
    color: var(--text-primary);
}

.sort-arrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 14px;

    font-size: 14px;

    opacity: 0.7;
}


/* ============================================================
   KNOWN IPS LIST
   ============================================================ */

.known-ips-list {
    width: 100%;
}


/* ============================================================
   KNOWN IP ROW
   ============================================================ */

.known-ip-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        180px
        120px;

    align-items: center;

    min-height: 68px;

    padding: 12px 18px;

    border-bottom: 1px solid var(--border-color);
}

.known-ip-row:last-child {
    border-bottom: none;
}


/* ============================================================
   IP + LOCATION
   ============================================================ */

.known-ip-info {
    display: flex;

    flex-direction: column;

    min-width: 0;

    gap: 4px;
}

.known-ip-address {
    font-family: monospace;

    font-size: 14px;
    font-weight: 600;

    color: var(--text-primary);

    white-space: nowrap;
}

.known-ip-location {
    font-size: 12px;

    color: var(--text-secondary);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ============================================================
   LAST SEEN
   ============================================================ */

.known-ip-last {
    text-align: right;

    font-size: 13px;

    color: var(--text-secondary);
}


/* ============================================================
   REQUESTS
   ============================================================ */

.known-ip-requests {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 2px;
}

.known-ip-requests strong {
    font-size: 14px;

    color: var(--text-primary);
}

.known-ip-requests span {
    font-size: 11px;

    color: var(--text-secondary);
}


/* ============================================================
   LOADING / EMPTY / ERROR
   ============================================================ */

.known-ips-list .loading,
.known-ips-list .empty,
.known-ips-list .error {
    padding: 30px 20px;

    text-align: center;

    font-size: 13px;

    color: var(--text-secondary);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {

    .ip-controls {
        flex-direction: column;

        align-items: flex-end;

        gap: 8px;
    }

    .known-ips-header,
    .known-ip-row {
        grid-template-columns:
            minmax(0, 1fr)
            140px
            90px;
    }

}


@media (max-width: 600px) {

    .section-header {
        align-items: flex-start;

        gap: 15px;
    }

    .ip-controls {
        align-items: stretch;
    }

    .known-ips-header {
        grid-template-columns:
            minmax(0, 1fr)
            100px;
    }

    .known-ips-header > span:nth-child(2) {
        display: none;
    }

    .known-ip-row {
        grid-template-columns:
            minmax(0, 1fr)
            100px;
    }

    .known-ip-last {
        display: none;
    }

}