/* Global Styles */
:root {
    --primary: #1a202c;
    --secondary: #2d3748;
    --accent: #3182ce;
    --success: #38a169;
    --danger: #e53e3e;
    --light: #f7fafc;
    --dark: #1a202c;
    --gray: #718096;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--dark); background: #f8fafc; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--accent); transition: all 0.2s ease; }
a:hover { color: #2b6cb0; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.row { display: flex; flex-wrap: wrap; margin: 0 -1rem; }
.col { padding: 0 1rem; flex: 1; }
.main-content { flex: 0 0 66.666%; max-width: 66.666%; }
.sidebar { flex: 0 0 33.333%; max-width: 33.333%; }

@media (max-width: 992px) {
    .main-content, .sidebar { flex: 0 0 100%; max-width: 100%; }
}

/* Navbar */
nav { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 1.25rem 0; position: sticky; top: 0; z-index: 100; }
nav .container { display: flex; justify-content: space-between; align-items: center; }
nav a.logo { color: var(--primary); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.025em; }
nav ul { display: flex; align-items: center; }
nav ul li { margin-left: 1.5rem; }
nav ul li a { font-size: 0.95rem; font-weight: 500; color: var(--gray); }
nav ul li a:hover { color: var(--accent); }

/* Cards */
.card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 2rem; overflow: hidden; border: 1px solid #edf2f7; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.75rem; }
.card-title { margin-bottom: 0.75rem; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.card-meta { font-size: 0.85rem; color: var(--gray); margin-bottom: 1rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.card-img { width: 100%; height: 240px; object-fit: cover; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: var(--secondary); }
input[type="text"], input[type="password"], textarea, select { width: 100%; padding: 0.75rem 1rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; transition: border-color 0.2s; background: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1); }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: 8px; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; transition: all 0.2s ease; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2b6cb0; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #2f855a; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c53030; transform: translateY(-1px); box-shadow: var(--shadow); }

/* Internal Links Widget */
.internal-links ul li a { color: var(--accent); font-weight: 600; }
.internal-links ul li a:hover { text-decoration: underline; }

/* Breadcrumbs */
.breadcrumb a:hover { text-decoration: underline; }

/* Admin Table */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #edf2f7; }
table th, table td { padding: 1.25rem; text-align: left; border-bottom: 1px solid #edf2f7; }
table th { background: #f8fafc; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); }

/* Alerts */
.alert { padding: 1rem 1.25rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500; font-size: 0.95rem; }
.alert-success { background: #f0fff4; color: #22543d; border: 1px solid #c6f6d5; }
.alert-danger { background: #fff5f5; color: #822727; border: 1px solid #fed7d7; }

/* Pagination */
.pagination { display: flex; justify-content: center; margin-top: 3rem; gap: 0.5rem; }
.pagination a { padding: 0.6rem 1.1rem; border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 600; color: var(--secondary); background: #fff; }
.pagination a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a:hover:not(.active) { background: #f8fafc; border-color: #cbd5e0; }

/* Sidebar Widgets */
.widget { background: #fff; padding: 1.75rem; border-radius: 12px; margin-bottom: 2rem; box-shadow: var(--shadow); border: 1px solid #edf2f7; }
.widget-title { border-bottom: 2px solid var(--accent); padding-bottom: 0.5rem; margin-bottom: 1.25rem; font-size: 1.1rem; font-weight: 800; color: var(--primary); display: inline-block; }
.widget ul li { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid #f1f5f9; }
.widget ul li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.widget ul li a { color: var(--secondary); font-weight: 500; font-size: 0.95rem; }
.widget ul li a:hover { color: var(--accent); }
