:root {
    --primary-color: #7b1fa2;
    --secondary-color: #69f0ae;
    --dark-color: #212121;
    --light-color: #f5f5f5;
    --sidebar-width: 240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #fafafa;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color), #4a148c);
    color: white;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    color: var(--dark-color);
}

.app-name {
    font-size: 1.2rem;
    font-weight: 500;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: white;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid var(--secondary-color);
}

.menu-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: all 0.3s;
}

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

.page-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    font-weight: 500;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

/* Dashboard Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(123, 31, 162, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--dark-color);
}

.stat-info p {
    color: #757575;
    font-size: 0.9rem;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 30px;
}

/* Map Container */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

/* Timeline Chart */
.timeline-container {
    height: 400px;
    margin-bottom: 30px;
}

/* Alert Levels */
.alert-level {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.alert-level.critical {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

.alert-level.high {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}

.alert-level.medium {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
}

.alert-level.low {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.alert-icon {
    margin-right: 15px;
    font-size: 1.5rem;
}

/* Sentiment Indicators */
.sentiment-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sentiment-bar {
    height: 10px;
    border-radius: 5px;
    margin: 0 10px;
    flex-grow: 1;
}

/* News Items */
.news-item {
    margin-bottom: 20px;
}

.news-date {
    font-weight: bold;
    color: blue;
    margin: 5px 0;
}

/* Hero Section */
.hero {
    margin-bottom: 30px;
}

.hero h1 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero p {
    margin-bottom: 20px;
    color: #616161;
    line-height: 1.6;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #6a1b9a;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}
/* Status Badge Styles */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.monitoring {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.active {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-badge.stable {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

