 /* --- CSS VARIABLES (COLOR PALETTE FROM LOGO) --- */
        :root {
            /* Primary Colors (Logo Greens) */
            --primary-light: #8dc63f; /* Lighter Green */
            --primary-dark: #3a8d1e;  /* Darker Green */
            /* Secondary Accent (Logo Red) */
            --accent: #ed1c24;       /* Accent Red */
            /* Contextual Colors */
            --background: #f4f7f6;
            --sidebar-bg: #1a1d1f;
            --text-main: #333;
            --text-light: #fff;
            --shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        /* --- BASIC RESET & GENERAL --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            display: flex;
            background-color: var(--background);
            color: var(--text-main);
            min-height: 100vh;
        }

        /* --- SIDEBAR --- */
        .sidebar {
            width: 260px;
            background-color: var(--sidebar-bg);
            color: var(--text-light);
            display: flex;
            flex-direction: column;
            padding: 20px 0;
            position: fixed;
            height: 100vh;
        }

        .brand {
            padding: 0 25px 30px;
            font-size: 24px;
            font-weight: bold;
            display: flex;
            align-items: center;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 20px;
        }

        /* A small '90' in logo style for the brand icon */
        .brand .logo-icon {
            font-size: 32px;
            color: var(--primary-light);
            margin-right: 10px;
            font-family: 'Arial Black', sans-serif;
            letter-spacing: -2px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        .nav-links {
            list-style: none;
            flex-grow: 1;
        }

        .nav-links li {
            padding: 12px 25px;
            cursor: pointer;
            display: flex;
            align-items: center;
            font-size: 16px;
            color: #b0b0b0;
            transition: all 0.2s;
        }

        .nav-links li i {
            margin-right: 15px;
            width: 20px;
            text-align: center;
        }

        .nav-links li:hover, .nav-links li.active {
            color: var(--text-light);
            background-color: rgba(255,255,255,0.05);
            border-left: 4px solid var(--primary-light);
        }

        .nav-links li.active i {
            color: var(--primary-light);
        }

        .admin-footer {
            padding: 20px 25px;
            font-size: 12px;
            color: #777;
            text-align: center;
        }

        /* --- MAIN CONTENT AREA --- */
        .main-content {
            flex-grow: 1;
            margin-left: 260px;
            padding: 30px;
        }

        /* Top Header */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .header h1 {
            font-size: 28px;
            color: var(--text-main);
        }

        .user-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .btn {
            padding: 10px 18px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }

        .btn-add {
            background-color: var(--primary-dark);
            color: var(--text-light);
        }

        .btn-add:hover {
            background-color: var(--primary-light);
        }

        .admin-profile {
            color: var(--text-main);
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* --- DASHBOARD STATS SECTION --- */
        .section-stats {
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 20px;
            margin-bottom: 15px;
            color: #555;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
        }

        .stat-card {
            background: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .stat-icon {
            font-size: 32px;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        /* Unique coloring for stat cards based on logo theme */
        .icon-posts {
            color: var(--primary-light);
            background-color: #f1fbe7;
        }

        .icon-views {
            color: var(--accent);
            background-color: #feebe8;
        }

        .icon-eng {
            color: #ffb900; /* Yellow */
            background-color: #fff9e6;
        }

        .stat-details h3 {
            font-size: 30px;
            margin-bottom: 2px;
        }

        .stat-details p {
            color: #777;
            font-size: 14px;
        }

        /* --- POSTS TABLE SECTION --- */
        .posts-section {
            background: #fff;
            padding: 25px;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }

        .table-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .search-bar {
            width: 300px;
            padding: 10px 15px;
            border-radius: 5px;
            border: 1px solid #ddd;
            font-size: 14px;
        }

        .content-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }

        .content-table thead {
            background-color: #f8f9fa;
        }

        .content-table th, .content-table td {
            text-align: left;
            padding: 15px;
            border-bottom: 1px solid #eee;
        }

        .content-table th {
            color: #666;
            font-weight: 600;
        }

        /* Column widths */
        .content-table .col-id { width: 5%; }
        .content-table .col-title { width: 30%; }
        .content-table .col-author { width: 15%; }
        .content-table .col-date { width: 15%; }
        .content-table .col-stats { width: 15%; text-align: right;}
        .content-table .col-actions { width: 20%; text-align: center; }

        .title-cell {
            color: var(--text-main);
            font-weight: 500;
        }

        .category-tag {
            background-color: #f0f0f0;
            color: #666;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 11px;
            margin-right: 5px;
        }

        .perf-icon {
            display: inline-block;
            margin-left: 5px;
            color: var(--primary-light);
        }

        /* Inline Action Buttons */
        .btn-inline {
            padding: 5px 10px;
            border-radius: 4px;
            text-decoration: none;
            font-size: 12px;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }

        .btn-edit {
            background-color: #e9ecef;
            color: var(--text-main);
            border: 1px solid #dcdcdc;
        }

        .btn-edit:hover {
            background-color: #dcdcdc;
        }

        .btn-delete {
            background-color: var(--accent);
            color: var(--text-light);
            border: 1px solid var(--accent);
        }

        .btn-delete:hover {
            background-color: #c9181e;
        }

        /* RESPONSIVE DESIGN (VERY BASIC) */
        @media (max-width: 900px) {
            .sidebar { width: 70px; }
            .brand span, .nav-links li span, .admin-footer { display: none; }
            .brand .logo-icon { margin-right: 0; }
            .nav-links li i { margin-right: 0; font-size: 20px; }
            .main-content { margin-left: 70px; }
        }

        @media (max-width: 768px) {
            .header h1 { font-size: 22px; }
            .stats-grid { grid-template-columns: 1fr 1fr; }
            .btn span { display: none; } /* Hide button text */
            .table-controls { flex-direction: column; gap: 10px; align-items: flex-start; }
            .search-bar { width: 100%; }
        }

        @media (max-width: 480px) {
            .stats-grid { grid-template-columns: 1fr; }
        }

        /* --- PAGINATION STYLES --- */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background-color: var(--primary-light);
    color: #fff;
    border-color: var(--primary-light);
}

.page-btn.active {
    background-color: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    font-weight: bold;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* FORM EXTRA STYLES */
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
}

.form-group textarea:focus, .form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

   /* WordPress Style Custom Editor Layout */
        .wp-editor-container {
            background: #fff;
            border-radius: 8px;
            box-shadow: var(--shadow);
            overflow: hidden;
            max-width: 960px;
            margin: 0 auto 40px auto;
        }

        /* Top Image Preview Banner */
        .image-preview-header {
            position: relative;
            width: 100%;
            height: 280px;
            background-color: #1a1d1f;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border-bottom: 3px solid var(--primary-light);
        }

        .image-preview-header img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }

        .image-preview-placeholder {
            color: #888;
            text-align: center;
            font-size: 14px;
        }

        .image-preview-placeholder i {
            font-size: 40px;
            margin-bottom: 8px;
            color: #555;
            display: block;
        }

        .editor-form-body {
            padding: 30px;
        }

        .wp-title-input {
            width: 100%;
            border: none;
            border-bottom: 2px solid #eee;
            font-size: 24px;
            font-weight: 700;
            padding: 10px 0;
            margin-bottom: 20px;
            outline: none;
            color: var(--text-main);
        }

        .wp-title-input:focus {
            border-color: var(--primary-dark);
        }

        .meta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 20px;
            background: #f8f9fa;
            padding: 18px;
            border-radius: 6px;
            margin-bottom: 25px;
            border: 1px solid #e9ecef;
        }

        .editor-section-title {
            font-size: 16px;
            font-weight: 600;
            color: #444;
            margin: 25px 0 10px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tox-tinymce {
            border-radius: 6px !important;
            margin-bottom: 20px;
        }