* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, "Noto Sans Devanagari", sans-serif;
    background: #f1f5f9;
    color: #0f172a;
}

a {
    text-decoration: none;
}

/* Login */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #2563eb);
}

.login-card {
    width: 420px;
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    font-weight: 900;
}

.login-logo h1 {
    font-size: 30px;
}

.login-logo p {
    color: #64748b;
    margin-top: 5px;
}

.error-box {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    padding: 12px;
    border-radius: 10px;
    outline: none;
}

.login-btn {
    width: 100%;
    border: none;
    background: #2563eb;
    color: #ffffff;
    padding: 13px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

/* Admin Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: #0f172a;
    color: #ffffff;
    padding: 24px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.admin-brand h2 {
    font-size: 22px;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar nav a {
    color: #cbd5e1;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: #2563eb;
    color: #ffffff;
}

.admin-main {
    padding: 28px;
}

.admin-topbar {
    background: #ffffff;
    padding: 22px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar h1 {
    font-size: 30px;
}

.admin-topbar p {
    color: #64748b;
    margin-top: 5px;
}

.admin-user img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
}

.stat-card h3 {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 12px;
}

.stat-card strong {
    font-size: 34px;
    color: #2563eb;
}

.admin-section {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title a {
    background: #2563eb;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
    color: #64748b;
}

.status {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status.published {
    background: #dcfce7;
    color: #166534;
}

.status.pending {
    background: #fef3c7;
    color: #92400e;
}

.status.draft {
    background: #e2e8f0;
    color: #334155;
}

.status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .login-card {
        width: 92%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-btn {
    background: #2563eb;
    color: #ffffff;
    padding: 11px 16px;
    border-radius: 10px;
    font-weight: 800;
}

.table-img {
    width: 70px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.small-btn {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    margin: 2px;
    color: #ffffff;
}

.small-btn.view {
    background: #0f766e;
}

.small-btn.edit {
    background: #2563eb;
}

.small-btn.delete {
    background: #dc2626;
}

.success-box {
    background: #dcfce7;
    color: #166534;
    padding: 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 800;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.checkbox-row label {
    font-weight: 700;
    color: #334155;
}

.checkbox-row input {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.image-preview-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    width: fit-content;
}

.image-preview-box img {
    width: 180px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}


.status.active {
    background: #dcfce7;
    color: #166534;
}

.status.inactive {
    background: #fee2e2;
    color: #991b1b;
}


.profile-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 10px;
}

.profile-preview img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-preview h2 {
    font-size: 24px;
    color: #0f172a;
}

.profile-preview p {
    color: #64748b;
    margin-top: 4px;
    text-transform: capitalize;
}

.form-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 10px 0;
}

.table-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.role-badge {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-transform: capitalize;
}

.role-badge.admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.role-badge.editor {
    background: #fef3c7;
    color: #92400e;
}

.role-badge.reporter {
    background: #dcfce7;
    color: #166534;
}