:root {
    --primary-dark: #0a2e28;
    --primary: #1e6f5c;
    --primary-light: #289672;
    --secondary: #f4a261;
    --text-dark: #1e2a3e;
    --text-muted: #5b6e8c;
    --border-light: #e2e8f0;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fc;
    color: var(--text-dark);
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0a2e28 0%, #0b3b32 100%);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.nav-item {
    margin: 4px 12px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #d1f2eb;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: white;
}

.nav-link i {
    width: 24px;
}

.submenu {
    list-style: none;
    padding-left: 48px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.submenu.open {
    max-height: 300px;
}

.submenu .nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.main-content {
    flex: 1;
    margin-left: 280px;
}

.top-header {
    background: var(--white);
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 99;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.org-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: white;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-badge {
    background: #eff3f6;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
}

.avatar {
    width: 46px;
    height: 46px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.page-content {
    padding: 32px;
}

.card-modern {
    background: var(--white);
    border-radius: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    padding: 20px;
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
}

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

.table {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.alert-success {
    background: #d1fae5;
    border: none;
    border-radius: 12px;
}