/* CREATESONLINE Admin Panel Styles v0.1.6 */

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light-bg);
    color: #1e293b;
    line-height: 1.6;
}

/* Admin Header */
.admin-header {
    background: var(--dark-bg);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-nav {
    display: flex;
    gap: 2rem;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.admin-nav a:hover {
    color: var(--primary-color);
}

/* Admin Sidebar */
.admin-sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    width: 250px;
    height: calc(100vh - 60px);
    background: white;
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    overflow-y: auto;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.admin-sidebar li:hover {
    background: var(--light-bg);
}

.admin-sidebar li.active {
    background: var(--primary-color);
    color: white;
}

/* Admin Main Content */
.admin-main {
    margin-left: 250px;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.admin-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th {
    background: var(--light-bg);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover {
    background: var(--light-bg);
}

/* Buttons */
.admin-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
}

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

.admin-btn-primary:hover {
    background: #1d4ed8;
}

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

.admin-btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Forms */
.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.admin-form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.admin-form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.admin-stat-label {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Badges */
.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.admin-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.admin-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
}
