* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background: #2c3e50;
    color: white;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #34495e;
}

.sidebar-header h3 { font-size: 16px; }

.nav-menu {
    list-style: none;
    padding: 10px 0;
}

.nav-menu li a {
    display: block;
    padding: 12px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: background 0.2s;
}

.nav-menu li a:hover { background: #34495e; color: white; }
.nav-menu li a.logout-link { color: #e74c3c; }

.content {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
}

h1 { margin-bottom: 20px; color: #2c3e50; }
h2 { margin: 20px 0 10px; color: #2c3e50; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 { font-size: 28px; color: #2c3e50; }
.stat-card p { color: #7f8c8d; margin-top: 4px; }
.stat-card.warning h3 { color: #e67e22; }

.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.form-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.search-input { max-width: 400px; }

textarea.form-input { font-family: monospace; resize: vertical; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 500; color: #555; }

.form-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn:hover { background: #f0f0f0; }
.btn-primary { background: #3498db; color: white; border-color: #3498db; }
.btn-primary:hover { background: #2980b9; }
.btn-danger { background: #e74c3c; color: white; border-color: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.btn-small { padding: 4px 10px; font-size: 12px; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th {
    background: #ecf0f1;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #555;
}

.data-table td {
    padding: 10px 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.data-table tr:hover td { background: #f9f9f9; }
.row-warning td { background: #fef9e7; }

.monospace { font-family: 'Consolas', monospace; font-size: 13px; }

.badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pending { background: #fef9e7; color: #e67e22; }
.badge-approved { background: #eafaf1; color: #27ae60; }
.badge-rejected { background: #fdedec; color: #e74c3c; }

.success-message { margin-top: 10px; padding: 10px; background: #eafaf1; color: #27ae60; border-radius: 4px; }
.error-message { margin-top: 10px; padding: 10px; background: #fdedec; color: #e74c3c; border-radius: 4px; }

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #2c3e50;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    width: 360px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #2c3e50;
}
