:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #34495e;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --sidebar-bg: #2c3e50;
    --sidebar-text: #ecf0f1;
    --card-bg: #ffffff;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Roboto', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
    transition: all 0.3s ease;
}

.sidebar .logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: background 0.3s, border-left 0.3s;
    border-left: 4px solid transparent;
}

.sidebar ul li a:hover, .sidebar ul li a.active {
    background-color: rgba(255,255,255,0.1);
    border-left: 4px solid var(--primary-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Topbar */
.topbar {
    height: 70px;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    padding: 0 2rem;
    box-shadow: var(--shadow);
    justify-content: space-between;
}

/* Dashboard Cards */
.content-area {
    padding: 2rem;
}

.page-title {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.card-content h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Tables and Forms base */
.data-box {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

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

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

table th {
    background-color: #f9f9f9;
    color: var(--secondary-color);
}

table tr:hover {
    background-color: #f1f1f1;
}

.actions a {
    text-decoration: none;
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.actions a:hover {
    color: var(--primary-color);
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-dark);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
