/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --border-color: #ddd;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* ===== Layout ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-size: 24px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-start {
    display: flex;
    gap: 20px;
}

.navbar-end {
    display: flex;
    gap: 20px;
}

.navbar-item {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
}

.navbar-item:hover,
.navbar-item.active {
    background: var(--primary-color);
    color: white;
}

/* ===== Sidebar Menu ===== */
.sidebar-menu {
    padding: 0 15px;
}

.menu-section {
    margin-bottom: 30px;
}

.menu-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-list {
    list-style: none;
}

.menu-list li {
    margin-bottom: 5px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.menu-link:hover,
.menu-link.active {
    background: var(--primary-color);
    color: white;
}

.menu-icon {
    font-size: 18px;
}

.menu-text {
    flex: 1;
}

/* ===== Content Area ===== */
.content-area {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.page-header p {
    color: #999;
}

/* ===== Stats Container ===== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 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);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
}

.stat-content h3 {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ===== Dashboard Section ===== */
.dashboard-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dashboard-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-color);
}

/* ===== Tables ===== */
.activities-table {
    width: 100%;
    border-collapse: collapse;
}

.activities-table thead {
    background: var(--light-bg);
}

.activities-table th {
    text-align: left;
    padding: 12px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.activities-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.activities-table tbody tr:hover {
    background: var(--light-bg);
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
}

/* ===== Dropdown ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        margin-left: 0;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 10px;
    }

    .content-area {
        padding: 15px;
    }

    .page-header h1 {
        font-size: 24px;
    }
}
