:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
}

.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.logo span {
    color: var(--secondary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    font-weight: 600;
}

.btn-logout {
    background: var(--light);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-logout:hover {
    background: #ddd;
}

.container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 250px;
    background: var(--primary);
    color: white;
    padding: 20px 0;
}

.sidebar-menu {
    list-style: none;
}

.menu-item {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    color: white;
}

.menu-item:hover, .menu-item.active {
    background: rgba(255,255,255,0.1);
}

.menu-item i {
    width: 20px;
}

.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: var(--primary);
    margin-bottom: 10px;
}

.recent-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header h3 {
    color: var(--primary);
}

.btn-new {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-new:hover {
    background: #2980b9;
}

.btn-action {
    background: var(--light);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-action:hover {
    background: #dfe6e9;
}

.btn-save {
    background: var(--success);
    color: white;
}

.btn-save:hover {
    background: #219653;
}

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

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

th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary);
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-published { background: #d5f4e6; color: #27ae60; }
.status-draft { background: #fff3cd; color: #856404; }
.status-archived { background: #f8d7da; color: #721c24; }

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-preview, .btn-delete {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}

.btn-edit { background: #3498db; color: white; }
.btn-preview { background: #27ae60; color: white; }
.btn-delete { background: #e74c3c; color: white; }

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}