:root {
    --primary: #2c3e50;
    --secondary: #4a6580;
    --accent: #e0b973;
    --beneficiary: #c1a979;
    --financial: #7e9d9d;
    --training: #b1c04a;
    --monitoring: #c98754;
    --asset: #8c8d90;
    --comms: #7d97a4;
    --valuechain-input: #6b8e23;
    --valuechain-production: #2e8b57;
    --valuechain-processing: #b8860b;
    --valuechain-logistics: #4682b4;
    --valuechain-marketing: #cd853f;
    --valuechain-research: #9370db;
    --valuechain-regulatory: #708090;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7f9;
    color: #333;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    grid-template-rows: 70px 1fr;
    height: 100vh;
}

/* Header */
header {
    grid-column: 2 / 3;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0b973;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
}

/* Sidebar */
.sidebar {
    grid-row: 1 / 3;
    background: #1e293b;
    color: white;
    padding: 20px 0;
}

.sidebar-title {
    padding: 0 20px 20px;
    font-size: 18px;
    border-bottom: 1px solid #344156;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu li {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu li:hover, .sidebar-menu li.active {
    background: rgba(255,255,255,0.1);
}

.sidebar-menu li.active {
    border-left: 4px solid var(--accent);
}

/* Dashboard Content */
.dashboard {
    grid-column: 2 / 3;
    padding: 25px;
    overflow-y: auto;
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-title {
    font-size: 28px;
    margin: 0;
    color: var(--primary);
}

.date-display {
    color: #777;
    margin-top: 5px;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.kpi-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.08);
}

.kpi-card::before {
    content: '';
    position: absolute;
    height: 4px;
    top: 0;
    left: 0;
    right: 0;
}

.kpi-title {
    text-transform: uppercase;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.kpi-trend {
    font-size: 14px;
    color: #4CAF50;
}

.kpi-trend.negative {
    color: #F44336;
}

/* Charts Section */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-title {
    font-weight: 600;
}

/* Chart Section Styles */
.chart-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.chart-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Gantt Chart Styles */
.gantt-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
}

.gantt-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.gantt-wrapper {
    width: 100%;
    overflow-x: auto;
}

.gantt-legend {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

/* Value Chain Styles */
.value-chain-nav {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 25px;
    padding: 5px 0;
}

.value-chain-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 90px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.value-chain-stage i {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary);
}

.value-chain-stage span {
    font-size: 14px;
    font-weight: 500;
}

.value-chain-stage.active {
    background: var(--primary);
    color: white;
}

.value-chain-stage.active i {
    color: var(--accent);
}

.value-chain-content-section {
    display: none;
}

.value-chain-content-section.active {
    display: block;
}

/* Value Chain KPI Cards */
.kpi-card.valuechain-input::before {
    background-color: var(--valuechain-input);
}

.kpi-card.valuechain-production::before {
    background-color: var(--valuechain-production);
}

.kpi-card.valuechain-processing::before {
    background-color: var(--valuechain-processing);
}

.kpi-card.valuechain-logistics::before {
    background-color: var(--valuechain-logistics);
}

.kpi-card.valuechain-marketing::before {
    background-color: var(--valuechain-marketing);
}

.kpi-card.valuechain-research::before {
    background-color: var(--valuechain-research);
}

/* Data Table Styles */
.data-table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    margin-top: 25px;
}

.data-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.data-table-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.data-table-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-secondary {
    background-color: #f5f7f9;
    color: var(--primary);
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f5f7f9;
    border-bottom: 1px solid #ddd;
    font-weight: 600;
    color: var(--primary);
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

.status-active {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-inactive {
    background-color: rgba(244, 67, 54, 0.1);
    color: #F44336;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.data-table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-controls button {
    background: none;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Dashboard Cards */
.dashboard-section {
    margin-top: 40px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary);
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.08);
}

.dashboard-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.dashboard-card h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}

.dashboard-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}
    

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.completed {
    background-color: #4CAF50;
}

.legend-color.in-progress {
    background-color: #2196F3;
}

.legend-color.not-started {
    background-color: #F44336;
}
    

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Recent Activities */
.activities-section {
    grid-column: 1 / -1;
    margin-top: 30px;
}

.activity-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.activity-content {
    flex: 1;
}

.activity-user {
    font-weight: 600;
}

.activity-time {
    font-size: 12px;
    color: #777;
}

/* Color adjustments for KPI cards */
.project-planning::before { background-color: #8aa1a1; }
.beneficiary::before { background-color: var(--beneficiary); }
.financial::before { background-color: var(--financial); }
.training::before { background-color: var(--training); }
.monitoring::before { background-color: var(--monitoring); }
.asset::before { background-color: var(--asset); }
.comms::before { background-color: var(--comms); }

/* Form Styles */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(224, 185, 115, 0.2);
}

.form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    margin-bottom: 25px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 2px solid #ddd;
    color: var(--primary);
    font-weight: 600;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.3s;
}

.action-btn:hover {
    color: var(--primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.page-item {
    list-style: none;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-item.active .page-link {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    margin-bottom: 25px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.filter-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

/* Card Styles */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.08);
}

.card-header {
    padding: 15px 20px;
    background-color: var(--primary);
    color: white;
}

.card-title {
    margin: 0;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

/* Key Performance Indicators */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.indicator-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
}

.indicator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.indicator-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.indicator-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.indicator-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.indicator-status.success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.indicator-status.warning {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ef6c00;
}

.indicator-status.danger {
    background-color: rgba(244, 67, 54, 0.15);
    color: #d32f2f;
}

.indicator-status.info {
    background-color: rgba(33, 150, 243, 0.15);
    color: #1976d2;
}

.indicator-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.indicator-metric {
    text-align: center;
}

.metric-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.indicator-progress {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.progress-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--monitoring), var(--accent));
    border-radius: 4px;
}

.progress-text {
    text-align: right;
    font-size: 0.8rem;
    color: #666;
}

.indicator-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-item:hover {
    color: var(--primary);
}

.tab-item.active {
    border-bottom-color: var(--accent);
    color: var(--primary);
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    header, .dashboard {
        grid-column: 1;
    }
    
    .sidebar {
        display: none;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

.data-update-info {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
    text-align: right;
}

/* Maintenance Status Colors */
.maintenance-status {
    width: 5px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-radius: 4px 0 0 4px;
}

.maintenance-status.maintenance {
    background-color: #4caf50;
}

.maintenance-status.repair {
    background-color: #ff9800;
}

.maintenance-status.inspection {
    background-color: #2196f3;
}

.maintenance-status.calibration {
    background-color: #9c27b0;
}

.maintenance-status.critical {
    background-color: #f44336;
}

/* Maintenance Dashboard */
.maintenance-dashboard {
    margin-bottom: 30px;
}

.maintenance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(76, 175, 80, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: #4caf50;
}

.stat-card:nth-child(2) .stat-icon {
    background-color: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.stat-card:nth-child(3) .stat-icon {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196f3;
}

.stat-card:nth-child(4) .stat-icon {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.stat-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

/* Calendar Styling */
.calendar-container {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-nav .btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f7f9;
    color: var(--primary);
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.calendar-nav .btn:hover {
    background-color: var(--primary);
    color: white;
}

.calendar-current-month {
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    font-size: 1.1rem;
}

.calendar-view-options {
    display: flex;
    gap: 8px;
}

.calendar-view-options .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 20px;
    background-color: #f5f7f9;
    color: #666;
    border: 1px solid #eee;
}

.calendar-view-options .btn.active {
    background-color: var(--monitoring);
    color: white;
    border-color: var(--monitoring);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.calendar-day.header {
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
    color: var(--primary);
    font-size: 0.9rem;
    background-color: transparent;
    border: none;
}

.calendar-day {
    aspect-ratio: 1/1;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    position: relative;
    transition: all 0.2s ease;
    background-color: white;
}

.calendar-day:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.calendar-day.prev-month,
.calendar-day.next-month {
    color: #ccc;
    background-color: #f9f9f9;
    opacity: 0.7;
}

.calendar-day .calendar-event {
    background-color: var(--monitoring);
    color: white;
    font-size: 0.75rem;
    padding: 3px 6px;
    border-radius: 4px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    background-color: #f5f7f9;
    padding: 6px 12px;
    border-radius: 20px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}

/* Field Visits List */
.field-visits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.field-visit-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 0;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.field-visit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.visit-date {
    background-color: rgba(201, 135, 84, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-right: 1px solid #f0f0f0;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--monitoring);
    line-height: 1.2;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.visit-details {
    padding: 20px;
}

.visit-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.visit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.visit-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.visit-meta i {
    color: var(--monitoring);
}

.visit-description p {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

.visit-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-left: 1px solid #f0f0f0;
}

.visit-actions .btn {
    white-space: nowrap;
}

.legend-color.maintenance {
    background-color: #4caf50;
}

.legend-color.repair {
    background-color: #ff9800;
}

.legend-color.inspection {
    background-color: #2196f3;
}

.legend-color.calibration {
    background-color: #9c27b0;
}

.legend-color.critical {
    background-color: #f44336;
}

/* Modern Maintenance List */
.maintenance-list.modern .maintenance-card {
    position: relative;
    padding-left: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: white;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    overflow: hidden;
    padding: 0;

}

.maintenance-list.modern .maintenance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.maintenance-list.modern .maintenance-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 10px;
    border-right: 1px solid #eee;
}

.maintenance-list.modern .date-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.maintenance-list.modern .date-month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
}

.maintenance-list.modern .date-time {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.maintenance-list.modern .maintenance-details {
    padding: 15px 0;
}

.maintenance-list.modern .maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.maintenance-list.modern .maintenance-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.maintenance-list.modern .maintenance-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.maintenance-list.modern .badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.maintenance-list.modern .badge.primary {
    background-color: #4caf50;
}

.maintenance-list.modern .badge.secondary {
    background-color: #607d8b;
}

.maintenance-list.modern .badge.warning {
    background-color: #ff9800;
}

.maintenance-list.modern .badge.info {
    background-color: #2196f3;
}

.maintenance-list.modern .maintenance-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #666;
}

.maintenance-list.modern .maintenance-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.maintenance-list.modern .maintenance-meta i {
    color: var(--primary);
}

.maintenance-list.modern .maintenance-description {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #444;
}

.maintenance-list.modern .maintenance-description p {
    margin: 0;
}

.maintenance-list.modern .maintenance-progress {
    margin-top: 10px;
}

.maintenance-list.modern .progress-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.maintenance-list.modern .progress {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.maintenance-list.modern .progress-bar {
    height: 100%;
    background-color: #4caf50;
    color: white;
    text-align: center;
    font-size: 0.7rem;
    line-height: 8px;
}

.maintenance-list.modern .maintenance-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    border-left: 1px solid #eee;
}

.maintenance-list.modern .btn-outline {
    border: 1px solid #ccc;
    background: transparent;
    color: #555;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.maintenance-list.modern .btn-outline:hover {
    background-color: #f5f5f5;
}

.maintenance-list.modern .btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.maintenance-list.modern .btn-primary:hover {
    background-color: var(--secondary);
}

/* Section Header with Actions */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
    position: relative;
    padding-bottom: 8px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 10px;
}

/* Reports List Styling */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 0;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.report-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.report-icon {
    background-color: rgba(201, 135, 84, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--monitoring);
    border-right: 1px solid #f0f0f0;
}

.report-details {
    padding: 20px;
}

.report-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.report-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-meta i {
    color: var(--monitoring);
}

.report-description {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

.report-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-left: 1px solid #f0f0f0;
}

.report-actions .btn {
    white-space: nowrap;
}

/* Upcoming Trainings Styling */
.upcoming-trainings {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.training-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 0;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.training-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.training-date {
    background-color: rgba(177, 192, 74, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-right: 1px solid #f0f0f0;
}

.date-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--training);
    line-height: 1.2;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.training-details {
    padding: 20px;
}

.training-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.training-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.training-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.training-meta i {
    color: var(--training);
}

.training-description {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

.training-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-left: 1px solid #f0f0f0;
}

.training-actions .btn {
    white-space: nowrap;
}

/* Communication Campaigns Styling */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.campaign-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.campaign-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.campaign-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaign-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.campaign-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.campaign-status.active {
    background-color: #4caf50;
}

.campaign-status.scheduled {
    background-color: #2196f3;
}

.campaign-status.completed {
    background-color: #9e9e9e;
}

.campaign-status.draft {
    background-color: #ff9800;
}

.campaign-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.campaign-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666;
}

.campaign-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.campaign-meta i {
    color: var(--comms);
}

.campaign-description {
    font-size: 0.9rem;
    color: #444;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.campaign-stats {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.campaign-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    background-color: #f9f9f9;
}

/* Key Insights Styling */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.insight-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.insight-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(125, 151, 164, 0.1);
    color: var(--comms);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-content {
    flex-grow: 1;
}

.insight-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.insight-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.5;
}

/* Recent Communication Activities Styling */
.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 25px;
    border-left: 2px solid #e0e0e0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ccc;
}

.timeline-item.add:before {
    background-color: #4caf50;
    border-color: #4caf50;
}

.timeline-item.update:before {
    background-color: #2196f3;
    border-color: #2196f3;
}

.timeline-item.maintenance:before {
    background-color: #ff9800;
    border-color: #ff9800;
}

.timeline-item.allocation:before {
    background-color: #9c27b0;
    border-color: #9c27b0;
}

.timeline-item.decommission:before {
    background-color: #f44336;
    border-color: #f44336;
}

.timeline-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.timeline-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.timeline-actions .btn {
    padding: 3px 8px;
    font-size: 0.8rem;
}

.activity-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.activity-badge.add {
    background-color: #4caf50;
}

.activity-badge.update {
    background-color: #2196f3;
}

.activity-badge.maintenance {
    background-color: #ff9800;
}

.activity-badge.allocation {
    background-color: #9c27b0;
}

.activity-badge.decommission {
    background-color: #f44336;
}

/* Feedback Styling */
.feedback-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.feedback-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feedback-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feedback-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feedback-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.feedback-date {
    font-size: 0.8rem;
    color: #666;
}

.feedback-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
}

.feedback-rating span {
    color: #666;
    font-size: 0.9rem;
    margin-left: 5px;
}

.feedback-body {
    margin-bottom: 15px;
}

.feedback-body p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    font-style: italic;
}

.feedback-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-footer .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(125, 151, 164, 0.1);
    color: var(--comms);
}