:root {
    --primary: #4f46e5;
    --sidebar: #1e293b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #334155;
    --border: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
}

/* Sidebar */
aside {
    width: 260px;
    background: var(--sidebar);
    color: white;
    height: 100vh;
    position: fixed;
    transition: all 0.3s;
}

aside .sidebar-header {
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

aside nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

aside nav ul li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s;
}

aside nav ul li a:hover,
aside nav ul li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

aside nav ul li a i {
    width: 24px;
    margin-right: 12px;
}

/* Main Content */
main {
    flex: 1;
    margin-left: 260px;
    padding: 2.5rem;
    max-width: 1200px;
}

h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #0f172a;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #334155;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #64748b;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    color: #64748b;
    font-size: 0.875rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.media-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.media-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.media-info {
    padding: 0.5rem;
    font-size: 0.75rem;
    background: #fff;
    border-top: 1px solid var(--border);
}