/* Google Fonts - Inter */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f8fafc;
    --sidebar-bg: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    display: flex;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: var(--white);
    position: fixed;
    transition: var(--transition);
}

.sidebar-brand {
    padding: 2rem 1.5rem;
    text-align: center;
}

.sidebar-brand h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.sidebar-brand span {
    color: var(--primary);
    font-weight: 800;
}

.sidebar ul {
    list-style: none;
    padding: 0 1rem;
}

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.sidebar ul li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.sidebar ul li a:hover, 
.sidebar ul li a.active {
    background: var(--primary);
    color: var(--white);
}

/* --- MAIN CONTENT --- */
.content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 2rem;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.header-left h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.header-left p {
    color: var(--text-muted);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-info span {
    display: block;
    font-weight: 600;
}

.user-info small {
    color: var(--text-muted);
}

.user-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* TOOLBAR & BUTTONS */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.search-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-wrapper input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.7rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
}

.btn {
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.btn-add:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- TABLE DESIGN --- */
.table-container {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table thead th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 2px solid #f1f5f9;
}

.modern-table tbody td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Article Cell Customization */
.article-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-cell img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.article-info .title {
    display: block;
    font-weight: 600;
    color: var(--text-main);
}

.article-info .author {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Tags & Badges */
.category-tag {
    background: #eff6ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.published {
    background: #dcfce7;
    color: #166534;
}

.status-badge.draft {
    background: #fef3c7;
    color: #92400e;
}

/* Action Buttons */
.action-btns {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.action-btns a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-edit { background: #eff6ff; color: var(--primary); }
.btn-edit:hover { background: var(--primary); color: white; }

.btn-delete { background: #fef2f2; color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: white; }

/* Responsive */
@media (max-width: 992px) {
    .sidebar { width: 80px; }
    .sidebar-brand h2, .sidebar ul li a span, .btn span { display: none; }
    .content { margin-left: 80px; width: calc(100% - 80px); }
    .sidebar ul li a i { margin-right: 0; font-size: 1.2rem; }
}