@font-face {
    font-family: "RFDewi";
    src: url("../fonts/RFDewi-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "RFDewi";
    src: url("../fonts/RFDewi-Semibold.ttf") format("truetype");
    font-weight: 600;
}

@font-face {
    font-family: "RFDewi";
    src: url("../fonts/RFDewi-Bold.ttf") format("truetype");
    font-weight: 700;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "RFDewi", "Segoe UI", Arial, sans-serif;
    background: #3f3f3f;
    color: #ffffff;
    min-height: 100vh;
}

.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.logo {
    width: 170px;
    opacity: 0.9;
    display: block;
    margin-bottom: 50px;
}

.container,
.panel-page {
    width: 100%;
    max-width: 920px;
}

.content,
.panel-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.content {
    display: flex;
    align-items: stretch;
    gap: 70px;
    padding: 35px 45px;
}

.text {
    max-width: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text h1,
.panel-top h1 {
    margin: 0 0 15px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.text p,
.panel-top p,
.section-text,
.form-row label,
table,
input,
button,
a {
    font-size: 16px;
}

.text p,
.panel-top p,
.section-text {
    margin: 0 0 10px;
    color: #cfcfcf;
    line-height: 1.6;
}

.auth-panel {
    width: 260px;
    display: flex;
    align-items: center;
}

.auth-form,
.report-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ЛОГИН-СТРАНИЦА: поля по центру */
.auth-form input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: linear-gradient(145deg, #5a5a5a, #444444);
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    outline: none;
    font-family: "RFDewi", "Segoe UI", Arial, sans-serif;
    line-height: 1;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.60);
    opacity: 1;
    text-align: center;
}

.auth-form input:focus {
    border-color: rgba(255, 255, 255, 0.16);
}

/* ФОРМА ОТЧЁТА: поля обычные, слева */
.report-form input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: linear-gradient(145deg, #5a5a5a, #444444);
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    outline: none;
    font-family: "RFDewi", "Segoe UI", Arial, sans-serif;
    line-height: 1;
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

.report-form input::placeholder {
    color: rgba(255, 255, 255, 0.60);
    opacity: 1;
}

.report-form input:focus {
    border-color: rgba(255, 255, 255, 0.16);
}

/* КНОПКИ */
.btn,
button,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    width: 100%;
    height: 52px;
    background: linear-gradient(145deg, #5a5a5a, #444444);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    text-align: center;
    font-family: "RFDewi", "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.btn:hover,
button:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
    background: linear-gradient(145deg, #666666, #505050);
}

/* FLASH */
.flash-container {
    width: 100%;
    max-width: 920px;
    margin-bottom: 16px;
}

.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

.flash-success {
    background: rgba(76, 175, 80, 0.20);
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.flash-danger {
    background: rgba(244, 67, 54, 0.20);
    border: 1px solid rgba(244, 67, 54, 0.35);
}

.flash-warning {
    background: rgba(255, 193, 7, 0.18);
    border: 1px solid rgba(255, 193, 7, 0.30);
}

/* АДМИНКА */
.panel-box {
    padding: 35px 45px;
}

.panel-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    color: #ffffff;
    font-weight: 600;
}

td {
    color: #cfcfcf;
}

/* ФОРМА */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    color: #ffffff;
    font-weight: 600;
}

.report-form button,
.btn-secondary {
    min-height: 52px;
}

@media (max-width: 900px) {
    .page-wrap {
        justify-content: flex-start;
        padding-top: 70px;
    }

    .logo {
        width: 145px;
        margin-bottom: 32px;
    }

    .content {
        flex-direction: column;
        gap: 28px;
        padding: 26px 22px;
    }

    .auth-panel {
        width: 100%;
    }

    .text {
        max-width: 100%;
    }

    .text h1,
    .panel-top h1 {
        font-size: 28px;
    }

    .panel-box {
        padding: 26px 22px;
    }

    .panel-top {
        flex-direction: column;
    }
}
.report-form select {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: linear-gradient(145deg, #5a5a5a, #444444);
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    outline: none;
    font-family: "RFDewi", "Segoe UI", Arial, sans-serif;
    line-height: 1;
    appearance: none;
}

.report-form select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.checkbox-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: auto;
    margin: 0;
    box-shadow: none;
}

.checkbox-row label {
    margin: 0;
}
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    background: linear-gradient(145deg, #5a5a5a, #444444);
    color: #ffffff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    font-family: "RFDewi", "Segoe UI", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-select-trigger::after {
    content: "▾";
    font-size: 14px;
    opacity: 0.85;
}

.custom-select.disabled .custom-select-trigger {
    opacity: 0.6;
    cursor: not-allowed;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #4b4b4f;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    padding: 8px;
    display: none;
    z-index: 1000;
    max-height: 260px;
    overflow-y: auto;
}

.custom-select-menu.open {
    display: block;
}

.custom-select-option {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #ffffff;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    font-family: "RFDewi", "Segoe UI", Arial, sans-serif;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: none;
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
}
