/* =========================
   📄 Page Layout
========================= */

.content {

    display: flex;
    justify-content: center;

    min-height: 100vh;

    padding: 120px 20px;

    box-sizing: border-box;
}

/* =========================
   📦 Wrapper
========================= */

.admin-wrapper {

    width: 100%;
    max-width: 1200px;

    display: flex;
    flex-direction: column;

    gap: 35px;
}

/* =========================
   🧱 Admin Box
========================= */

.box {

    width: 100%;

    background: rgba(20, 16, 35, 0.85);
    border: 1px solid rgba(181, 23, 255, 0.25);

    border-radius: 15px;

    padding: 25px;

    display: flex;
    flex-direction: column;

    gap: 15px;

    box-sizing: border-box;

    box-shadow: 0 0 20px rgba(181, 23, 255, 0.1);
}

/* =========================
   🏷️ Title
========================= */

.box h2 {

    text-align: center;
    color: #b517ff;

    margin-bottom: 10px;
}

/* =========================
   ✏️ Inputs
========================= */

.box input,
.box textarea {

    width: 100%;

    padding: 12px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);

    background: #111;
    color: white;

    outline: none;

    font-size: 14px;

    box-sizing: border-box;
}

/* =========================
   📄 Textarea
========================= */

.box textarea {

    min-height: 120px;
    resize: vertical;
}

/* =========================
   📁 File Input
========================= */

.box input[type="file"] {

    padding: 10px;
    background: #111;
    color: white;
}

/* =========================
   🖼️ Current Image Text
========================= */

#currentImage {

    color: #aaa;
    font-size: 14px;

    margin-top: -5px;
}

/* =========================
   🚀 Buttons
========================= */

.box button {

    padding: 12px;

    border: none;
    border-radius: 10px;

    background: #b517ff;
    color: white;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;
}

.box button:hover {

    background: #9b10db;
    transform: scale(1.02);
}

/* =========================
   📋 Table Box
========================= */

.table-box {

    width: 100%;

    background: rgba(20, 16, 35, 0.85);
    border: 1px solid rgba(181, 23, 255, 0.25);

    border-radius: 15px;

    padding: 20px;

    box-sizing: border-box;

    overflow-x: auto;

    box-shadow: 0 0 20px rgba(181, 23, 255, 0.1);
}

/* =========================
   📋 Table Title
========================= */

.table-box h2 {

    color: #b517ff;

    margin-bottom: 20px;
}

/* =========================
   📋 Table
========================= */

table {

    width: 100%;

    border-collapse: collapse;
}

/* =========================
   📋 Header
========================= */

th {

    background: rgba(181, 23, 255, 0.15);

    color: #d78cff;

    padding: 14px;

    text-align: left;

    font-size: 14px;
}

/* =========================
   📋 Rows
========================= */

td {

    padding: 14px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    color: white;

    font-size: 14px;
}

/* hover */

tr:hover {

    background: rgba(255,255,255,0.03);
}

/* =========================
   💻 Script Preview
========================= */

.script-preview {

    max-width: 320px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #bbb;
}

/* =========================
   🔘 Action Buttons
========================= */

td button {

    border: none;

    padding: 8px 14px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: bold;

    margin-right: 8px;

    transition: 0.2s;
}

/* edit */

td button:first-child {

    background: #b517ff;
    color: white;
}

td button:first-child:hover {

    background: #9b10db;
}

/* delete */

td button:last-child {

    background: #ff3b5c;
    color: white;
}

td button:last-child:hover {

    background: #e11d48;
}

/* =========================
   📱 Mobile
========================= */

@media (max-width: 768px) {

    .content {

        padding: 100px 15px;
    }

    .box,
    .table-box {

        padding: 18px;
    }

    th,
    td {

        font-size: 13px;
        padding: 10px;
    }

    .script-preview {

        max-width: 160px;
    }

    td button {

        margin-bottom: 6px;
    }
}

/* =========================
   📂 Go To Scripts Button
========================= */

.go-scripts-btn {

    width: 100%;

    padding: 10px;

    margin-bottom: 15px;

    border: none;
    border-radius: 10px;

    background: #2196f3;
    color: white;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.go-scripts-btn:hover {

    background: #1976d2;

    transform: scale(1.02);
}