
.admin-content {
    background: #f4f6fb;
    min-height: calc(100vh - 64px);
    padding: 2rem;
}

.admin-page {
    max-width: 1100px;
    margin: 0 auto;
}


.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

    .admin-page-header h1 {
        font-size: 1.6rem;
        font-weight: 700;
        color: #0f2f96;
        margin: 0;
    }


.admin-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15,47,150,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}


.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .admin-table thead tr {
        background: #458a5e;
        color: white;
    }

    .admin-table thead th {
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
        font-size: 0.875rem;
        letter-spacing: 0.03em;
    }

        .admin-table thead th:first-child {
            border-radius: 8px 0 0 0;
        }

        .admin-table thead th:last-child {
            border-radius: 0 8px 0 0;
        }

    .admin-table tbody tr {
        border-bottom: 1px solid #eef1f8;
        transition: background 0.15s ease;
    }

        .admin-table tbody tr:hover {
            background: #f7fdf7;
        }

    .admin-table tbody td {
        padding: 12px 16px;
        color: #1b2a52;
        vertical-align: middle;
    }

    .admin-table tbody tr:last-child td {
        border-bottom: none;
    }


.badge-published {
    background: #e6f7e9;
    color: #0b8f1e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-unpublished {
    background: #fdf6da;
    color: #9a7b00;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-admin {
    background: #e8eeff;
    color: #0f2f96;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-user {
    background: #eef1f8;
    color: #1b2a52;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}


.btn-admin-primary {
    background: #458a5e;
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease;
}

    .btn-admin-primary:hover {
        background: #3d784f;
        color: white;
    }

.btn-admin-secondary {
    background: white;
    color: #1b2a52;
    border: 1px solid #cdd5e8;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

    .btn-admin-secondary:hover {
        border-color: #0b8f1e;
        color: #0b8f1e;
    }

.btn-admin-danger {
    background: white;
    color: #c0392b;
    border: 1px solid #c0392b;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .btn-admin-danger:hover {
        background: #c0392b;
        color: white;
    }

.btn-admin-edit {
    background: white;
    color: #0f2f96;
    border: 1px solid #0f2f96;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.15s ease;
}

    .btn-admin-edit:hover {
        background: #0f2f96;
        color: white;
    }

.btn-admin-promote {
    background: white;
    color: #0b8f1e;
    border: 1px solid #0b8f1e;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .btn-admin-promote:hover {
        background: #0b8f1e;
        color: white;
    }


.admin-empty {
    text-align: center;
    padding: 3rem;
    color: #6b7395;
}


.admin-search-bar {
    margin-bottom: 1.25rem;
}

.admin-search-input {
    width: 100%;
    max-width: 400px;
    padding: 9px 12px;
    border: 1px solid #cdd5e8;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #1b2a52;
    transition: border-color 0.15s ease;
}

    .admin-search-input:focus {
        outline: none;
        border-color: #0b8f1e;
        box-shadow: 0 0 0 3px rgba(11,143,30,0.1);
    }




@media (max-width: 768px) {
    .admin-content {
        padding: 1rem;
    }

    .admin-page-header h1 {
        font-size: 1.3rem;
    }

    .admin-search-input {
        max-width: 100%;
    }
}
