:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --success: #27ae60;
    --danger: #e74c3c;
    --light: #f4f7f6;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:  Arial, Helvetica, sans-serif
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    margin: 0;
    background-color: var(--light);
    color: var(--primary);
}

nav {
    background: var(--primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
}

nav a:hover { color: var(--accent); }

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 { margin-top: 0; color: #7f8c8d; font-size: 0.9rem; }
.card p { font-size: 1.5rem; font-weight: bold; margin: 0.5rem 0; }

form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    margin: auto;
}

.form-group { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.5rem; }
input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

button:hover { opacity: 0.9; }

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.btn-delete { background: var(--danger); width: auto; padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-edit { background: var(--accent); width: auto; padding: 0.4rem 0.8rem; font-size: 0.8rem; margin-right: 5px; }

/* Analytics Bars */
.bar-container { margin-bottom: 1rem; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 5px; }
.bar-bg { background: #eee; height: 20px; border-radius: 10px; overflow: hidden; }
.bar-fill { background: var(--accent); height: 100%; transition: width 0.5s ease; }