/* Admin Panel - Modern Minimalist Monochrome Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #003b73;
    --color-secondary: #005ba8;
    --color-accent: #0066cc;
    --color-gray: #6b6b6b;
    --color-light-gray: #e5e8ec;
    --color-bg: #ffffff;
    --color-bg-alt: #faf8f3;
    --color-cream: #f5f5dc;
    --color-light-blue: #e8f2f7;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 59, 115, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 59, 115, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 59, 115, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: #f5f5f5;
    color: var(--color-primary);
    line-height: 1.6;
    margin: 0;
}


.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #003b73;
}

/* card */
.login-box-simple {
    width: 330px;
    background: #cfcfcf;
    padding: 35px 30px;
    border-radius: 14px;
    text-align: center;
}

/* judul */
.login-box-simple h2 {
    margin-bottom: 20px;
    font-weight: 500;
    color: #333;
}

/* input */
.login-box-simple input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    background: #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
}

/* password wrapper */
.password-box {
    position: relative;
}

/* icon mata */
.show-pass {
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* tombol login reset */
.btn-row {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.btn-row button {
    width: 48%;
    padding: 10px;
    border: none;
    background: #003b73;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-row button:hover {
    opacity: 0.85;
}

/* tombol full */
.full-btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: #003b73;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.full-btn:hover {
    opacity: 0.85;
}

/* link bawah */
.login-footer {
    margin-top: 15px;
    font-size: 13px;
}

.login-footer a {
    color: #003b73;
    text-decoration: none;
    display: block;
    margin-top: 5px;
}

/* error merah */
.error-box {
    background: #ffd6d6;
    color: #a30000;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* success hijau */
.success-box {
    background: #d4edda;
    color: #155724;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

/* responsive */
@media(max-width:500px) {

    .login-box-simple {

        width: 90%;

        padding: 25px;

    }

}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--color-primary);
    color: white;
    padding: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 13px;
    color: #999;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: block;
    padding: 14px 20px;
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
}

.sidebar-nav a.logout {
    color: #ffffff;
    margin-top: 20px;
}

.sidebar-nav a.logout:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    background: #f5f5f5;
}

.content-header {
    margin-bottom: 40px;
}

.content-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.quick-actions h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}

/* Forms */
.form-container {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.form-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-secondary);
}

.form-container h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    color: var(--color-secondary);
}

.form-container h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4d4d4;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    resize: vertical;
}

.small-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

/* Buttons */
.btn-primary {
    padding: 14px 30px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2d2d2d;
    transform: translateY(-1px);
}

.btn-secondary {
    padding: 14px 30px;
    background: #e5e5e5;
    color: var(--color-secondary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #d4d4d4;
}

/* Tables */
.table-container {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead tr {
    background: var(--color-secondary);
    color: white;
}

table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

table tbody tr:hover {
    background: #f9f9f9;
}

.table-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.btn-edit,
.btn-delete {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    margin-right: 8px;
    transition: all 0.2s;
}

.btn-edit {
    background: #1a1a1a;
    color: white;
}

.btn-edit:hover {
    background: #2d2d2d;
}

.btn-delete {
    background: #ff4444;
    color: white;
}

.btn-delete:hover {
    background: #cc0000;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.badge {
    background: #e74c3c;
    color: white;
    padding: 2px 7px;
    border-radius: 50px;
    font-size: 12px;
    margin-left: 5px;
}

.stat-card.highlight {
    border-left: 4px solid #e74c3c;
}

/* ================================
   FORM STYLING - BERITA, GALERI, DLL
   ================================ */

.form-wrapper {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.form-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-primary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-light-blue);
}

.form-wrapper h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.form-wrapper h3:first-of-type {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #d4d4d4;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 59, 115, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input[type="file"] {
    padding: 8px 12px;
}

/* Preview Image */
.image-preview {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-info {
    font-size: 13px;
    color: #666;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.btn-submit,
.btn-update {
    padding: 12px 30px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover,
.btn-update:hover {
    background: #004a8a;
    transform: translateY(-1px);
}

.btn-cancel {
    padding: 12px 30px;
    background: #e5e5e5;
    color: var(--color-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #d4d4d4;
}

/* ================================
   TABLE STYLING - DATA LIST
   ================================ */

.table-wrapper {
    background: rgb(255, 255, 255);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    overflow-x: auto;
}

.table-wrapper h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-primary);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-light-blue);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead tr {
    background: var(--color-secondary);
    color: rgb(3, 3, 3);
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #333;
}

.data-table tbody tr {
    transition: background 0.2s;
}

.data-table tbody tr:hover {
    background: #f9f9f9;
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Table Images */
.table-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* No Data */
.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-data p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Action Buttons */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-action-edit,
.btn-action-delete,
.btn-action-view {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-action-edit {
    background: #1a1a1a;
    color: white;
}

.btn-action-edit:hover {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-action-delete {
    background: #e74c3c;
    color: white;
}

.btn-action-delete:hover {
    background: #c0392b;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-action-view {
    background: var(--color-primary);
    color: white;
}

.btn-action-view:hover {
    background: var(--color-secondary);
}

/* ================================
   MESSAGES / ALERTS
   ================================ */

.message-container {
    margin-bottom: 25px;
}

.alert-message {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-message.success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-message.warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.alert-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* ================================
   SECTION HEADERS
   ================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-light-blue);
}

.section-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
}

.section-header .btn-add {
    padding: 10px 20px;
    background: var(--color-secondary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.section-header .btn-add:hover {
    background: #004a8a;
    transform: translateY(-1px);
}

/* ================================
   MODAL STYLING
   ================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.modal-body {
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ================================
   HELPER CLASSES
   ================================ */

.text-muted {
    color: #999;
    font-size: 13px;
}

.text-small {
    font-size: 12px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.gap-10 {
    gap: 10px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
}

.msg.admin {
    background: #d1e7ff;
    align-self: flex-end;
    text-align: right;
}

.msg.user {
    background: #eee;
    align-self: flex-start;
}

#chatBox {
    scroll-behavior: smooth;
}

textarea {
    border-radius: 10px;
    padding: 8px;
}

button {
    background: #ff4da6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}

/* ================================
   KATEGORI
   =============================== */

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
    margin: 0;
}

.container {
    padding: 30px;
}

h2 {
    margin-bottom: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

input[type=text] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 250px;
}

button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #fafafa;
    text-align: left;
}

table th,
table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.pagination {
    margin-top: 15px;
}

.pagination a {
    padding: 6px 10px;
    margin-right: 5px;
    background: #ddd;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background: #4CAF50;
    color: white;
}

.notif {
    background: #e0f7e9;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .admin-wrapper {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-cancel,
    .section-header .btn-add {
        width: 100%;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }

    .table-thumbnail {
        width: 40px;
        height: 40px;
    }

    .image-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        max-width: 100%;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 15px;
    }

    .form-wrapper,
    .table-wrapper {
        padding: 20px;
        border-radius: 8px;
    }

    .form-wrapper h2,
    .table-wrapper h2 {
        font-size: 18px;
    }

    .btn-submit,
    .btn-cancel {
        padding: 10px 20px;
        font-size: 14px;
    }

    .action-buttons {
        gap: 8px;
    }

    .btn-action {
        padding: 10px 16px;
        font-size: 12px;
    }

    .table-actions {
        flex-direction: column;
    }

    .btn-action-edit,
    .btn-action-delete,
    .btn-action-view {
        width: 100%;
        text-align: center;
    }
}

/* ================================
   CHAT MESSAGING STYLE
   ================================ */

.chat-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    height: calc(100vh - 180px);
    margin-bottom: 40px;
}

.chat-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-sidebar h3 {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    border-bottom: 1px solid #eee;
    margin: 0;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-item {
    display: block;
    padding: 15px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.chat-item:hover {
    background: #f0f0f0;
    border-left-color: var(--color-primary);
}

.chat-item.active {
    background: var(--color-light-blue);
    border-left-color: var(--color-primary);
}

.chat-item-header {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item-footer {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.chat-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.chat-header h3 {
    margin: 0 0 5px 0;
    color: var(--color-primary);
}

.chat-header small {
    color: #999;
    font-size: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    display: inline-block;
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    word-wrap: break-word;
    line-height: 1.4;
}

.msg.admin {
    background: #d1e7ff;
    border: 1px solid #b3d9ff;
    align-self: flex-end;
    text-align: right;
}

.msg.user {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
}

.msg small {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.chat-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: white;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.message-input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #d4d4d4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 50px;
    transition: all 0.2s;
}

.message-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 59, 115, 0.1);
}

.btn-send {
    padding: 10px 20px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-send:hover {
    background: #004a8a;
    transform: translateY(-1px);
}

.input-actions {
    display: flex;
    gap: 10px;
}

.btn-emoji {
    flex: 1;
    padding: 8px 12px;
    background: #f0f0f0;
    color: var(--color-primary);
    border: 1px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.btn-emoji:hover {
    background: #e8e8e8;
    border-color: var(--color-primary);
}

.btn-file {
    flex: 1;
    padding: 8px 12px;
    background: white;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-file:hover {
    border-color: var(--color-primary);
}

.emoji-box {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 10px;
}

.emoji-box.show {
    display: flex;
}

.emoji-box span {
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.emoji-box span:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

/* Responsive Chat */
@media (max-width: 1024px) {
    .chat-container {
        grid-template-columns: 220px 1fr;
        height: calc(100vh - 160px);
    }

    .chat-sidebar {
        border-radius: 8px;
    }

    .chat-item {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
        max-height: 80vh;
    }

    .chat-sidebar {
        display: none;
    }

    .chat-main {
        height: 500px;
    }

    .message-input {
        min-height: 40px;
    }

    .btn-send {
        padding: 8px 16px;
    }

    .emoji-box span {
        font-size: 20px;
    }
}

/* ================================
   KATEGORI PAGE STYLES
   ================================ */

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 14px 18px;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

.form-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.form-group-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-group-inline input {
    flex: 1;
    padding: 12px 14px;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group-inline input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group-inline button {
    padding: 12px 24px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.form-group-inline button:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 59, 115, 0.2);
}

.search-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.search-card input {
    padding: 10px 14px;
    border: 1.5px solid #d4d4d4;
    border-radius: 6px;
    width: 100%;
    max-width: 350px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-card input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.table-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#kategoriTable {
    width: 100%;
    border-collapse: collapse;
}

#kategoriTable thead tr {
    background: var(--color-primary);
    color: white;
}

#kategoriTable th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#kategoriTable td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #333;
}

#kategoriTable tbody tr:hover {
    background: #f8f9fa;
}

.btn-danger {
    padding: 8px 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.pagination-wrapper {
    padding: 20px 16px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 8px;
}

.pagination a {
    padding: 8px 12px;
    background: #e5e5e5;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #d4d4d4;
}

.pagination a.active {
    background: var(--color-primary);
    color: white;
}

.no-data {
    padding: 40px;
    text-align: center;
    color: #999;
}

.badge-sudah {
    background: green;
    color: white;
}

.badge-belum {
    background: red;
    color: white;
}

/* =========================
   MOBILE MENU
========================= */

.menu-toggle{
    display:none;
    position:fixed;
    top:15px;
    left:15px;
    z-index:1100;
    border:none;
    background:#0b4a8b;
    color:#fff;
    padding:10px 14px;
    border-radius:6px;
    cursor:pointer;
    font-size:20px;
}

.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:998;
}

.overlay.show{
    opacity:1;
    visibility:visible;
}

/* Desktop */
.sidebar{
    transition:.3s ease;
}

/* Mobile */
@media (max-width:768px){

    .menu-toggle{
        display:block;
    }

    .sidebar{
        position:fixed;
        top:0;
        left:-280px;
        width:280px;
        height:100vh;
        z-index:999;
    }

    .sidebar.show{
        left:0;
    }

    .main-content{
        width:100%;
        margin-left:0 !important;
        padding-top:70px;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .action-buttons{
        display:flex;
        flex-direction:column;
        gap:10px;
    }

    .btn-action{
        width:100%;
        text-align:center;
    }
}