* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background: #0d0f13;
    color: #f7f8fa;
}

body {
    display: flex;
}

.sidebar {
    position: fixed;
    width: 155px;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 14px 10px;
    background: #171a20;
    border-right: 1px solid #2b3039;
}

.brand {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 28px;
}

.brand span {
    color: #3391ff;
}

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

.sidebar nav a {
    color: #d8e5ff;
    text-decoration: none;
    font-size: 12px;
    padding: 9px 10px;
    border-radius: 6px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #292f39;
    color: #ffffff;
}

.content {
    margin-left: 155px;
    width: calc(100% - 155px);
    padding: 18px 20px 30px;
}

h1 {
    margin: 0 0 7px;
    font-size: 23px;
}

h2 {
    font-size: 14px;
    margin: 0 0 8px;
}

p {
    font-size: 12px;
}

.subtitle {
    margin: 0 0 18px;
    color: #a8c8ff;
}

.box {
    background: #171a20;
    border: 1px solid #303641;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.destination-options {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.destination-card {
    display: flex;
    width: 215px;
    min-height: 78px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;

    border: 1px solid #39414d;
    border-radius: 8px;

    color: #ffffff;
    text-decoration: none;

    background: #181c22;
}

.destination-card:hover {
    border-color: #3391ff;
}

.destination-card strong {
    font-size: 18px;
}

.destination-card span {
    font-size: 11px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

label {
    display: flex;
    flex-direction: column;
    font-size: 11px;
    font-weight: 700;
    gap: 4px;
}

input,
select {
    height: 32px;
    border-radius: 4px;
    border: 1px solid #444d5a;
    background: #f7f7f7;
    padding: 5px 8px;
}

.full-input {
    width: min(600px, 100%);
}

button,
.button-secondary {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    padding: 9px 13px;
    font-size: 11px;
    cursor: pointer;
    text-decoration: none;
}

button {
    background: #2888f7;
    color: #ffffff;
}

.button-secondary {
    background: #2c3340;
    color: #ffffff;
}

.warning {
    border: 1px solid #946f12;
    background: #332910;
    color: #ffdb72;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 12px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

th,
td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #303641;
}

th {
    color: #a9c8ff;
    font-weight: 500;
}

.active-badge {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 4px;
    background: #155f34;
    color: #8effb2;
    font-size: 9px;
    font-weight: 700;
}

.status-ok {
    display: inline-block;
    background: #124f2c;
    color: #7cff9e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
}

.empty-state {
    color: #8f9cac;
    padding: 6px 0;
    font-size: 12px;
}

.filters {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

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

.counter {
    display: flex;
    flex-direction: column;
}

.counter strong {
    font-size: 18px;
}

.counter span {
    font-size: 11px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.news-grid .box {
    min-height: 270px;
}

.whatsapp-box {
    border-color: #14a860;
}

.telegram-box {
    border-color: #15a9d6;
}

.update-line {
    margin-top: 14px;
    font-weight: 700;
    font-size: 10px;
    color: #eeeeee;
}

@media (max-width: 800px) {
    .sidebar {
        position: static;
        width: 100%;
    }

    body {
        display: block;
    }

    .content {
        width: 100%;
        margin: 0;
    }

    .grid-form,
    .counter-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .destination-options {
        flex-direction: column;
    }

    .destination-card {
        width: 100%;
    }
}


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

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #0d0f13;
}

.login-card {
    width: 100%;
    max-width: 390px;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #303641;
    background: #171a20;
}

.login-brand {
    margin-bottom: 28px;
    font-size: 23px;
    font-weight: 700;
}

.login-brand span {
    color: #3391ff;
}

.login-card h1 {
    margin-bottom: 7px;
}

.login-card > p {
    margin-bottom: 23px;
    color: #a8c8ff;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    width: 100%;
}

.login-form button {
    margin-top: 5px;
    height: 38px;
    font-size: 12px;
    font-weight: 700;
}

.login-error {
    margin-bottom: 15px;
    padding: 10px 12px;
    border: 1px solid #9f3434;
    border-radius: 6px;
    background: #351719;
    color: #ff9999;
    font-size: 12px;
}

.sidebar-footer {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 15px;
}

.sidebar-footer a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: #ff8d8d;
    text-decoration: none;
    font-size: 12px;
}

.sidebar-footer a:hover {
    background: #342023;
}
