/* Odextra Studio - Admin Elite Theme */
:root {
    --admin-bg: #f8f9fa;
    --admin-sidebar: #050505;
    --admin-sidebar-text: #888;
    --admin-sidebar-active: #fff;
    --admin-accent: #2952FF;
    --admin-border: #e0e0e0;
    --font-ui: 'Inter', sans-serif;
}

body {
    background: var(--admin-bg);
    font-family: var(--font-ui);
    color: #111;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    background: var(--admin-sidebar);
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #111;
}

.admin-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav a {
    color: var(--admin-sidebar-text);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--admin-sidebar-active);
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav a.active {
    background: var(--admin-accent);
    color: #fff;
}

.admin-nav hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Content Area */
.admin-content {
    padding: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0;
}

/* Cards */
.admin-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--admin-border);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(41, 82, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--admin-accent);
    color: #fff;
}

.btn-primary:hover {
    background: #1a3ecc;
}

.btn-outline {
    background: transparent;
    border-color: #ddd;
    color: #333;
}

.btn-outline:hover {
    border-color: #999;
    background: #f9f9f9;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Template List */
.template-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    transition: background 0.1s;
}

.template-item:last-child {
    border-bottom: 0;
}

.template-item:hover {
    background: #fcfcfc;
}

.template-meta {
    flex: 1;
}

.template-name {
    font-weight: 600;
    color: #111;
    display: block;
}

.template-slug {
    font-size: 0.85rem;
    color: #888;
}

.template-status {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-published {
    background: #e0f2f1;
    color: #00695c;
}

.status-draft {
    background: #fff3e0;
    color: #e65100;
}

/* Media Grid */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.screenshot-item {
    aspect-ratio: 16/9;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}