:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --light: #f4f7f6;
    --white: #ffffff;
    --dark: #2d3436;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar h1 { margin: 0; font-size: 1.4rem; }
.navbar a { color: var(--white); text-decoration: none; margin-left: 15px; font-weight: 500; font-size: 0.9rem; }
.navbar a:hover { opacity: 0.8; }

/* CONTAINER & CARDS */
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.page-title { margin-top: 0; color: var(--primary); border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 20px; }

/* FORMS */
input[type="text"], input[type="number"], input[type="file"], select {
    width: 100%; padding: 10px; margin: 8px 0; display: inline-block; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box;
}
input[type="number"] { text-align: center; font-weight: bold; }

/* BUTTONS */
.btn { display: inline-block; padding: 10px 20px; font-size: 1rem; cursor: pointer; text-align: center; text-decoration: none; border: none; border-radius: 4px; color: white; transition: 0.3s; }
.btn-primary { background-color: var(--secondary); }
.btn-primary:hover { background-color: #2980b9; }
.btn-success { background-color: var(--success); }
.btn-success:hover { background-color: #219150; }
.btn-danger { background-color: var(--accent); }
.btn-danger:hover { background-color: #c0392b; }
.btn-block { display: block; width: 100%; }

/* TABLES */
.table-wrapper { overflow-x: auto; }
.custom-table { width: 100%; border-collapse: collapse; margin-top: 10px; min-width: 600px; }
.custom-table th, .custom-table td { border: 1px solid #ddd; padding: 12px; text-align: left; }
.custom-table th { background-color: var(--primary); color: white; text-align: center; }
.custom-table tr:nth-child(even) { background-color: #f9f9f9; }
.custom-table tr:hover { background-color: #f1f1f1; }
.center { text-align: center; }

/* ALERTS */
.alert { padding: 15px; background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; border-radius: 4px; margin-bottom: 20px; }
.alert-error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* DASHBOARD SPECIFIC */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; border-bottom: 4px solid var(--secondary); }
.stat-number { display: block; font-size: 2.5rem; font-weight: bold; color: var(--primary); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.menu-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.2s; }
.menu-item:hover { transform: translateY(-5px); }
.menu-icon { background: var(--secondary); color: white; padding: 20px; font-size: 2rem; text-align: center; }
.menu-content { padding: 20px; text-align: center; }
.menu-title { font-weight: bold; font-size: 1.1rem; display: block; margin-bottom: 5px; }