/* ================================
   ALAP ADMIN WRAPPER + BOX
================================ */

.kv-admin-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.kv-admin-box {
    width: 100%;
    max-width: 900px;
    background: #111;
    padding: 25px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.kv-admin-box h1 {
    margin-bottom: 15px;
    font-size: 26px;
    text-align: center;
    color: #ff4444;
}

/* ================================
   ADMIN INPUTOK – GLOBÁLIS JAVÍTÁS
================================ */

.kv-admin-wrapper input,
.kv-admin-wrapper select,
.kv-admin-wrapper textarea,
.kv-admin-box input,
.kv-admin-box select,
.kv-admin-box textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 15px;
}

/* ================================
   FILE INPUT – MOBIL FIX
================================ */

.kv-admin-wrapper input[type="file"],
.kv-admin-box input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #111;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 15px;
    overflow: hidden;
}

.kv-admin-wrapper input[type="file"]::-webkit-file-upload-button,
.kv-admin-box input[type="file"]::-webkit-file-upload-button {
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

.kv-admin-wrapper input[type="file"]::-webkit-file-upload-button:hover,
.kv-admin-box input[type="file"]::-webkit-file-upload-button:hover {
    background: #333;
}

/* ================================
   ADMIN LINKEK (RÉGI)
================================ */

.kv-admin-box a.admin-link {
    display: block;
    padding: 14px 18px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    margin-bottom: 12px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.kv-admin-box a.admin-link:hover {
    background: #333;
}

/* Logout */
.kv-admin-box a.logout-link {
    color: #ff4444;
    text-decoration: none;
    display: block;
    margin-top: 25px;
    text-align: center;
}

/* ================================
   ⭐ ÚJ: ADMIN KÁRTYÁK + GRID
================================ */

.admin-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.admin-link-card {
    display: block;
    background: #111;
    border: 1px solid #333;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: 0.2s ease;
}

.admin-link-card:hover {
    background: #1a1a1a;
    border-color: #555;
}

.admin-link-card .alcim {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #ff4444;
}

.admin-link-card .leiras {
    display: block;
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
}

/* Mobilbarát */
@media (max-width: 600px) {
    .admin-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   FELHASZNÁLÓ TÁBLÁZAT
================================ */

.kv-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 15px;
}

.kv-admin-table thead tr {
    background: #1c1c1c;
}

.kv-admin-table th {
    padding: 12px;
    text-align: left;
    color: #ff4444;
    font-weight: 600;
    border-bottom: 2px solid #222;
}

.kv-admin-table td {
    padding: 12px;
    border-bottom: 1px solid #222;
}

.kv-admin-table tbody tr:hover {
    background: #1a1a1a;
}

.status-active {
    color: #4caf50;
    font-weight: bold;
}

.status-pending {
    color: #ff9800;
    font-weight: bold;
}

/* ================================
   TÖRLÉS GOMB
================================ */

.admin-delete-btn {
    display: inline-block;
    padding: 8px 12px;
    background: #ff4444;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.admin-delete-btn:hover {
    background: #ff2222;
}

/* ================================
   MOBIL STACK LAYOUT
================================ */

@media (max-width: 700px) {

    .kv-admin-box {
        padding: 20px;
        border-radius: 0;
        max-width: 100%;
    }

    .kv-admin-wrapper {
        padding: 0;
    }

    .kv-admin-table thead {
        display: none;
    }

    .kv-admin-table tr {
        display: block;
        margin-bottom: 15px;
        background: #1a1a1a;
        padding: 10px;
        border-radius: 8px;
    }

    .kv-admin-table td {
        display: block;
        padding: 6px 0;
        border-bottom: none;
    }

    .kv-admin-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #ff4444;
        display: block;
        margin-bottom: 3px;
    }

    .admin-delete-btn {
        margin-top: 10px;
        display: inline-block;
    }
}

/* ================================
   TINYMCE OVERFLOW FIX
================================ */

.tox,
.tox-tinymce,
.tox-editor-container {
    box-sizing: border-box !important;
    max-width: 100% !important;
}
