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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.user-info {
    font-size: 13px;
    color: #bdc3c7;
}

.admin-badge {
    background: #e74c3c;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 5px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #34495e;
    border-left-color: #3498db;
}

.nav-link.active {
    background: #34495e;
    border-left-color: #3498db;
    color: white;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
}

.logout-link {
    display: block;
    padding: 10px;
    background: #e74c3c;
    color: white;
    text-align: center;
    text-decoration: none;
}

.logout-link:hover {
    background: #c0392b;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
}

.content-wrapper {
    max-width: 1200px;
}

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

.page-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.page-header p {
    color: #7f8c8d;
    font-size: 14px;
}

.card {
    background: white;
    padding: 25px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

input[type="checkbox"] {
    margin-right: 8px;
}

textarea {
    resize: vertical;
    min-height: 80px;
    font-family: monospace;
}

button, .btn {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

button:hover, .btn:hover {
    background: #2980b9;
}

.btn-success {
    background: #27ae60;
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-download {
    background: #27ae60;
    display: inline-block;
    text-decoration: none;
    margin-top: 10px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    margin-bottom: 15px;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    margin-bottom: 15px;
}

.code-block {
    background: #f4f4f4;
    padding: 15px;
    border: 1px solid #ddd;
    font-family: monospace;
    margin-top: 10px;
    overflow-x: auto;
    font-size: 13px;
}

.inline-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.inline-group .form-group {
    flex: 1;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecf0f1;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 40px;
    border: 1px solid #ddd;
}

.login-box h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.login-box .subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-left: 4px solid #3498db;
}

.stat-card h3 {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 32px;
    color: #2c3e50;
    font-weight: bold;
}

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

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table tr:hover {
    background: #f8f9fa;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 12px;
    background: #3498db;
    color: white;
}

.badge-success {
    background: #27ae60;
}