/* =====================================================
   SOSKIDS24 — ADMIN PANEL STYLES
   ===================================================== */

/* ------------------------------
   RESET
------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f9;
    color: #222;
    line-height: 1.5;
}

/* ------------------------------
   LAYOUT
------------------------------ */
#wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ------------------------------
   HEADER
------------------------------ */
header {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header h1 {
    font-size: 26px;
    margin-bottom: 15px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-btn {
    padding: 10px 16px;
    background: #e9eef5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #d5deeb;
}

.nav-btn.active {
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

/* ------------------------------
   CONTENT
------------------------------ */
#content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    min-height: 400px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
}

#content.loading::after {
    content: "Загрузка...";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
    margin-top: 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* ------------------------------
   TABLES
------------------------------ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.admin-table th {
    background: #f0f3f7;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e0e4ea;
    font-weight: 600;
}

.admin-table td {
    padding: 10px;
    border-bottom: 1px solid #ececec;
}

.admin-table tr:hover {
    background: #fafafa;
}

/* ------------------------------
   LOADER
------------------------------ */
.loader {
    text-align: center;
    padding: 40px 0;
    font-size: 20px;
    font-weight: 600;
}

/* ------------------------------
   NOTIFICATIONS
------------------------------ */
.notify {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 14px 20px;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    animation: fadeIn 0.3s ease-out;
    z-index: 9999;
}

.notify.info {
    background: #3b82f6;
}

.notify.success {
    background: #16a34a;
}

.notify.error {
    background: #dc2626;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------
   FORMS
------------------------------ */
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d7e2;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

button.action {
    padding: 10px 18px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

button.action:hover {
    background: #1e4fc7;
}

/* ------------------------------
   CARDS
------------------------------ */
.card {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }
}
