/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    color: #333;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    background: #1a237e;
    color: white;
    padding: 20px 0;
}

.logo {
    padding: 0 20px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.nav-menu li {
    list-style: none;
    padding: 12px 20px;
    border-left: 4px solid transparent;
}

.nav-menu li.active {
    background: rgba(255,255,255,0.1);
    border-left-color: #4fc3f7;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main content */
.main-content {
    flex: 1;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* KPI Cards */
.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.kpi-card:hover {
    transform: translateY(-5px);
}

.kpi-icon {
    font-size: 2.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 5px 0;
}

.kpi-change {
    font-size: 0.9rem;
    color: #666;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.action-btn {
    padding: 12px 24px;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: #283593;
}

/* Tables */
.recent-activity, .admin-preview {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.activity-table th {
    text-align: left;
    padding: 12px;
    background: #f5f7fa;
    border-bottom: 2px solid #e0e0e0;
}

.activity-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

/* Badges */
.badge {
    background: #4fc3f7;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}