/* ================= GLOBAL ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #eef2f7;
    color: #333;
}

/* ================= HEADER ================= */

.admin-header,
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #1e6bd6, #0b4aa2);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.admin-header h2,
.admin-topbar h2 {
    font-size: 20px;
    font-weight: 600;
}

.header-right,
.top-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ================= BUTTONS ================= */

.btn {
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    background: #ffffff;
    color: #1e6bd6;
    transition: 0.2s;
}

.btn:hover {
    background: #f1f5ff;
}

.btn.active {
    background: #ffd54f;
    color: #000;
}

.btn.logout,
.logout {
    background: #e74c3c;
    color: #fff;
}

.btn.logout:hover,
.logout:hover {
    background: #c0392b;
}

/* ================= CONTENT ================= */

.content,
.box {
    max-width: 1200px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* ================= HEADINGS ================= */

h2 {
    margin-bottom: 15px;
    color: #163a63;
}

h3 {
    margin-bottom: 15px;
    color: #163a63;
}

/* ================= TABLE ================= */

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

.admin-table,
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

/* table header */

.admin-table th,
table th {
    background: #163a63;
    color: #fff;
    padding: 12px;
    font-size: 14px;
    text-align: left;
}

/* table body */

.admin-table td,
table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* hover */

.admin-table tbody tr:hover,
table tbody tr:hover {
    background: #f3f7ff;
}

/* ================= TEXT WRAP ================= */

.wrap-text {
    max-width: 250px;
    word-wrap: break-word;
}

/* ================= STATUS BADGES ================= */

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: #ffe6a7;
    color: #9a6b00;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-published {
    background: #c8f7dc;
    color: #087443;
}

/* ================= ACTION BUTTONS ================= */

.btn-delete,
.delete-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-delete:hover,
.delete-btn:hover {
    background: #c0392b;
}

.btn-approve {
    background: #28a745;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-approve:hover {
    background: #218838;
}

.btn-reject {
    background: #ff9800;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

.btn-reject:hover {
    background: #e68900;
}

/* ================= TEXTAREA ================= */

textarea {
    width: 100%;
    min-height: 70px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

/* ================= LOGIN FORM ================= */

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

button {
    padding: 8px 16px;
    background: #1e6bd6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #174fa3;
}

.error {
    color: red;
    margin-bottom: 10px;
}

/* ================= NO DATA ================= */

.no-data {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* ================= MOBILE ================= */

@media(max-width:900px) {

    .admin-header,
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .content,
    .box {
        margin: 20px;
    }

    .admin-table th,
    .admin-table td,
    table th,
    table td {
        font-size: 13px;
        padding: 8px;
    }

}

@media(max-width:600px) {

    .btn {
        font-size: 12px;
        padding: 6px 10px;
    }

}

/* ================= ADMIN TOPBAR ================= */

.admin-topbar{
display:flex;
justify-content:space-between;
align-items:center;
background:linear-gradient(135deg,#1e6bd6,#0b4aa2);
padding:14px 28px;
color:#fff;
box-shadow:0 4px 12px rgba(0,0,0,0.15);
border-bottom:3px solid #0a3d91;
}

/* Title */

.admin-topbar h2{
font-size:20px;
font-weight:600;
letter-spacing:0.4px;
}

/* Right buttons container */

.top-buttons{
display:flex;
gap:10px;
align-items:center;
}

/* Buttons */

.top-buttons a{
text-decoration:none;
background:#ffffff;
color:#1e6bd6;
padding:7px 14px;
border-radius:6px;
font-size:13px;
font-weight:600;
transition:all 0.2s ease;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
}

/* Hover effect */

.top-buttons a:hover{
background:#f0f4ff;
transform:translateY(-1px);
}

/* Logout button */

.top-buttons a.logout{
background:#e74c3c;
color:#fff;
}

.top-buttons a.logout:hover{
background:#c0392b;
}

/* ================= RESPONSIVE ================= */

@media (max-width:768px){

.admin-topbar{
flex-direction:column;
align-items:flex-start;
gap:10px;
}

.top-buttons{
flex-wrap:wrap;
}

}