* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f3f4f6;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.login-container {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}
.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #2563eb;
}
.login-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.login-container button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.error {
    color: #dc3545;
    text-align: center;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 250px;
    background: #1e293b;
    color: white;
    padding: 20px;
}
.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2563eb;
}
.sidebar ul {
    list-style: none;
}
.sidebar ul li {
    margin: 15px 0;
}
.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 4px;
}
.sidebar ul li a:hover {
    background: #2563eb;
}
.main-content {
    flex: 1;
    padding: 20px;
    background: #f3f4f6;
}
.top-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.card h3 {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 10px;
}
.card p {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

/* Forms */
.settings-form, .inline-form, .filter-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
}
input, select, textarea, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
button {
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}
button:hover {
    background: #1d4ed8;
}
.inline-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.inline-form input, .inline-form select {
    flex: 1;
    min-width: 200px;
}
.inline-form button {
    width: auto;
    padding: 10px 20px;
}

/* Tables */
.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.data-table th {
    background: #2563eb;
    color: white;
    padding: 12px;
    text-align: left;
}
.data-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}
.data-table tr:hover {
    background: #f1f5f9;
}
.table-responsive {
    overflow-x: auto;
}

/* Alerts */
.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal */
#editModal {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 400px;
    max-width: 90%;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
    .cards {
        grid-template-columns: 1fr;
    }
    .inline-form {
        flex-direction: column;
    }
    .inline-form input, .inline-form select {
        width: 100%;
    }
}