:root {
    --primary-color: #0d47a1; /* Darker Blue */
    --primary-light: #1976d2; /* Lighter Blue */
    --secondary-color: #673ab7; /* Deep Purple */
    --success-color: #388e3c; /* Darker Green */
    --warning-color: #f57c00; /* Darker Orange */
    --danger-color: #d32f2f; /* Darker Red */
    --info-color: #0288d1; /* Darker Cyan */
    --text-dark: #212121; /* Almost Black */
    --text-muted: #757575; /* Grey */
    --bg-color: #f5f5f5; /* Lighter Grey Background */
    --sidebar-width: 260px;
    --sidebar-bg: #ffffff;
    --border-color: #e0e0e0;
}

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

body {
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

/* Sidebar Styles */
.sidebar {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: none;
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    letter-spacing: -0.5px;
}

/* Sidebar Search */
.sidebar-search {
    padding: 0 20px 16px;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.2s;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.sidebar-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px 8px;
    margin-top: 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 8px 12px;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
    margin: 0 12px;
}

.sidebar-menu li a i:first-child {
    width: 22px;
    font-size: 18px;
    margin-right: 14px;
    text-align: center;
}

.sidebar-menu li a span {
    flex: 1;
}

.sidebar-menu li a:hover {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.sidebar-menu li a.active,
.sidebar-menu li.has-dropdown.active > a {
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: 100vh;
}

/* Top Navbar */
.top-navbar {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Page Header */
.page-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 10px;
}

.page-header-left h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.page-header-left p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

/* Stat Cards */
.stat-cards-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-card-modern:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.stat-icon-modern {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-icon-modern.blue {
    background: rgba(13, 71, 161, 0.1);
    color: var(--primary-color);
}

.stat-icon-modern.purple {
    background: rgba(103, 58, 183, 0.1);
    color: var(--secondary-color);
}

.stat-icon-modern.green {
    background: rgba(56, 142, 60, 0.1);
    color: var(--success-color);
}

.stat-icon-modern.orange {
    background: rgba(245, 124, 0, 0.1);
    color: var(--warning-color);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

/* Cards */
.card-modern {
    background: white;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-modern-header {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-modern-header h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.card-modern-body {
    padding: 24px;
}

/* Action Cards */
.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.action-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.action-card-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.action-card-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

.btn-modern.btn-outline-modern {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-modern.btn-outline-modern:hover {
    background-color: var(--primary-color);
    color: white;
}
.list-item-modern {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
}

.list-item-modern:last-child {
    border-bottom: none;
}

.list-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 18px;
    flex-shrink: 0;
}

.list-item-content {
    flex: 1;
}

.list-item-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.list-item-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.list-item-action {
    margin-left: auto;
}

/* Buttons */
.btn-modern {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
}

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

.btn-outline-modern {
    background: transparent;
    border: 1px solid #E5E7EB;
    color: var(--text-dark);
}

.btn-outline-modern:hover {
    background: #F9FAFB;
}
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content h6 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
}

.activity-content p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* Announcement Items */
.announcement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}
.col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}

.top-navbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.top-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.search-bar {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-bar .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.search-bar input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: #F9FAFB;
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-actions .icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.navbar-actions .icon-btn:hover {
    background-color: #F3F4F6;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--danger-color);
    border-radius: 50%;
    border: 2px solid white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-profile:hover {
    background-color: #F3F4F6;
}

.user-dropdown {
    min-width: 200px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.user-dropdown .dropdown-item {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.user-dropdown .dropdown-item:hover {
    background-color: #F3F4F6;
    color: var(--primary-color);
}

.user-dropdown .dropdown-item i {
    width: 18px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.user-info h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-info p {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
}
.analytics-section-title {
    margin-bottom: 20px;
}

.analytics-section-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
.date-picker-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-state img {
    width: 120px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}
.content-wrapper {
    padding: 32px;
}
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.page-header p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.announcement-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.announcement-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.announcement-content {
    flex: 1;
}

.announcement-content h6 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.announcement-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 6px 0;
    line-height: 1.5;
}

.announcement-content small {
    font-size: 11px;
    color: var(--text-muted);
}
.card-modern-header .view-all {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.card-modern-header .view-all:hover {
    color: var(--primary-light);
}

.card-modern-header .view-all i {
    font-size: 11px;
    transition: transform 0.2s;
}

.card-modern-header .view-all:hover i {
    transform: translateX(2px);
}
.dropdown-menu {
    list-style: none;
    padding: 8px 0;
    margin: 4px 0 4px 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-menu li.has-dropdown.active .dropdown-menu {
    max-height: 300px;
}

.dropdown-menu li a {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.dropdown-menu li a:hover {
    background-color: #F3F4F6;
    color: var(--primary-color);
}
.stat-description {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.table {
    font-size: 13px;
}

.card-custom {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: none;
}
.sidebar-menu li.has-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}
.sidebar-menu li a .dropdown-arrow {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.2s;
}