/* Общие стили админ-панели deepmindbot.ru */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #020617;
    color: #e5e7eb;
}

/* Логин */
.admin-login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.admin-login-wrap .card {
    width: 100%;
    max-width: 360px;
    padding: 24px 20px 28px;
    border-radius: 16px;
    background: #030712;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.admin-login-wrap h1 {
    margin: 0 0 8px;
    font-size: 22px;
}

.admin-login-wrap p {
    margin: 0 0 16px;
    font-size: 13px;
    color: #9ca3af;
}

.admin-login-wrap label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.admin-login-wrap input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    margin-bottom: 12px;
    font-size: 14px;
}

.admin-login-wrap button {
    width: 100%;
    padding: 10px 0;
    border-radius: 999px;
    border: none;
    background: #b18f52;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.admin-login-wrap .error {
    color: #fca5a5;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Дашборд и страницы админки */
.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.admin-wrap {
    max-width: 900px;
}

.wrap h1 {
    font-size: 24px;
    margin: 0 0 8px;
}

.meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.wrap .card {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #030712;
    border: 1px solid #1f2937;
}

.card-title {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.card-value {
    font-size: 18px;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
}

th, td {
    padding: 6px 8px;
    border-bottom: 1px solid #1f2937;
    text-align: left;
}

th {
    background: #020617;
    font-weight: 500;
    color: #9ca3af;
    position: sticky;
    top: 0;
}

tbody tr:hover {
    background: #030712;
}

.actions-cell {
    white-space: nowrap;
}
.inline-form {
    display: inline;
    margin: 0;
}
.btn-reset {
    color: #fca5a5;
    font-size: 12px;
}
.btn-reset:hover {
    color: #f87171;
}
.admin-flash {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.admin-flash-ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-link, .link-small {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

/* Универсальное меню разделов админки */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #1f2937;
}
.admin-nav a {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: none;
}
.admin-nav a:hover {
    color: #e5e7eb;
}
.admin-nav a.active {
    color: #b18f52;
    font-weight: 500;
}
.admin-nav .nav-sep {
    color: #374151;
    font-size: 12px;
}

/* Практика: блоки с таблицей статуса и формой загрузки */
.practice-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}
@media (max-width: 560px) {
    .practice-upload-grid {
        grid-template-columns: 1fr;
    }
}
.practice-upload-block {
    padding: 16px;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: #030712;
}
.practice-block-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}
.practice-status-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 13px;
}
.practice-status-table th,
.practice-status-table td {
    padding: 8px 10px;
    text-align: left;
    border: 1px solid #1f2937;
}
.practice-status-table th {
    color: #9ca3af;
    font-weight: 500;
}
.practice-status {
    font-weight: 500;
}
.practice-status-ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}
.practice-status-missing {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}
.practice-upload-block .field {
    margin-bottom: 12px;
}
.practice-upload-block .actions {
    margin-top: 8px;
}
.practice-upload-msg {
    margin: 0 0 16px;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}
.practice-upload-err {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.practice-upload-ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Редактор оферты */
.admin-h1 {
    font-size: 22px;
    margin: 0 0 4px;
}

.field {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
}

#editor-title {
    min-height: 60px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
}

#editor-body {
    min-height: 320px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
}

.ql-container {
    font-size: 15px;
}

.ql-editor {
    min-height: 50px;
}

#editor-body .ql-editor {
    min-height: 300px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.btn-primary {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #b18f52;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #374151;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 14px;
}
