:root {
    --primary-color: #005f87;
    --primary-light: #3388a8;
    --primary-dark: #003654;
    --secondary-color: #ff7d00;
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --info-color: #2196F3;
    --light-gray: #f5f7fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #333;
    --text-color: #444;
    --text-light: #777;
}

/* Base Styles */
body {
    background-color: #f9f9f9;
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 1.8rem;
    color: white;
}

.app-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Dashboard Styles */
.dashboard-container {
    padding: 2rem;
    flex: 1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#current-time {
    font-weight: 500;
    color: var(--text-light);
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.operational {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.stat-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-header i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.stat-content {
    padding: 1.5rem;
}

.stat-metric {
    margin-bottom: 1.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.metric-label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Flight Status Card */
.flight-status .stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flight-status .stat-chart {
    width: 100px;
    height: 100px;
}

/* Progress Bars */
.progress-bars {
    margin-top: 1.5rem;
}

.progress-item {
    margin-bottom: 1rem;
}

.progress-item span {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    flex-grow: 1;
    background-color: var(--medium-gray);
    overflow: hidden;
}

.progress-bar > div {
    height: 100%;
}

.progress-container span {
    font-size: 0.8rem;
    color: var(--text-light);
    min-width: 40px;
}

/* Gauge Chart */
.gauge-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
}

.gauge-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.performance-metrics {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.performance-metrics .metric {
    text-align: center;
}

.performance-metrics .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.performance-metrics .label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Alerts */
.alert-list {
    padding: 0.5rem 0;
}

.alert-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    align-items: flex-start;
}

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

.alert-item.critical {
    background-color: rgba(244, 67, 54, 0.05);
}

.alert-item.warning {
    background-color: rgba(255, 152, 0, 0.05);
}

.alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-item.critical .alert-icon {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.alert-item.warning .alert-icon {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.alert-content h4 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.alert-time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.3rem;
}

/* Timeline */
.timeline-container {
    padding: 1rem 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--medium-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.timeline-time {
    width: 50px;
    font-weight: 500;
    color: var(--primary-color);
    flex-shrink: 0;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-content h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.timeline-status {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}

.timeline-status.on-time {
    background-color: var(--success-color);
}

.timeline-status.delayed {
    background-color: var(--warning-color);
}

/* Weather Card */
.weather-content {
    padding: 1rem;
}

.current-weather {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.weather-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 214, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #FFD600;
}

.weather-details {
    flex-grow: 1;
}

.temperature {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.conditions {
    font-size: 1rem;
    color: var(--text-light);
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
}

.forecast-item {
    text-align: center;
    font-size: 0.9rem;
}

.forecast-item i {
    display: block;
    font-size: 1.5rem;
    margin: 0.3rem 0;
    color: var(--primary-light);
}

/* Footer */
.app-footer {
    background-color: white;
    padding: 1rem 2rem;
    border-top: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Digital Twin Page */
.digital-twin-container {
    position: relative;
    height: calc(100vh - 60px);
}

.three-viewport {
    width: 100%;
    height: 100%;
}

.viewport-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.8rem;
}

.control-btn {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--medium-gray);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.control-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-options select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--medium-gray);
    background-color: white;
    color: var(--text-color);
    font-size: 0.9rem;
}

.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    width: 250px;
}

.info-panel h3 {
    color: var(--primary-color);
    margin: 0 0 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.info-label {
    color: var(--text-light);
}

.info-value {
    font-weight: 500;
    color: var(--primary-color);
}
/* Add to your styles.css */
.flight-info-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 300px;
  background: rgba(0, 95, 135, 0.9);
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-family: 'Arial', sans-serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 100;
}

.flight-info-panel h3 {
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

.flight-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
}

.status-ontime {
  background: #4CAF50;
}

.status-delayed {
  background: #FF9800;
}

.status-critical {
  background: #F44336;
}

/* Digital Twin View Specific Styles */
.digital-twin-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
}

.three-viewport {
    width: 100%;
    height: 100%;
    background-color: #87CEEB;
}

.viewport-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.control-btn {
    padding: 8px 12px;
    background: rgba(0, 95, 135, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.control-btn.active {
    background: rgba(0, 150, 200, 0.9);
}

.view-options {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.view-options select {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 250px;
    background: rgba(0, 95, 135, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.info-label {
    font-weight: bold;
}

.info-value {
    color: #ffff00;
}

#loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Digital Twin Specific Styles */
.digital-twin-view {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
}

.three-viewport {
    width: 100%;
    height: 100%;
}

#loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
}

.operation-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 95, 135, 0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.step {
    flex: 1;
    text-align: center;
    padding: 10px;
    position: relative;
}

.step i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: #4CAF50;
    transition: width 0.3s;
}

.step.active .progress-fill {
    width: 100%;
}

.btn-control {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.btn-control:hover {
    background: #e67300;
}

.flight-info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 250px;
    background: rgba(0, 95, 135, 0.9);
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
}

.flight-info-panel h3 {
    margin-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.flight-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-ontime {
    background: #4CAF50;
}

.status-delayed {
    background: #FF9800;
}

.status-critical {
    background: #F44336;
}

/* SLA Compliance Styles */
.sla-compliance .stat-content {
    padding: 1rem 1.5rem 1.5rem;
}

.sla-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.sla-item {
    text-align: center;
    flex: 1;
}

.sla-gauge {
    width: 80px;
    height: 40px;
    margin: 0 auto 5px;
}

.sla-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.sla-value {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.sla-summary {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid var(--medium-gray);
    margin-top: 10px;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Predictive Analytics Styles */
.prediction-item {
    margin-bottom: 1rem;
}

.prediction-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.prediction-value {
    font-weight: 600;
    color: var(--primary-color);
}

#delayPredictionChart {
    margin: 1rem 0;
}

.prediction-footer {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Cost Monitoring Styles */
.cost-metric {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cost-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
}

.cost-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.cost-breakdown {
    margin-bottom: 1rem;
}

.breakdown-item {
    margin-bottom: 0.8rem;
    position: relative;
}

.breakdown-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.breakdown-value {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 600;
    color: var(--primary-color);
}

.breakdown-bar {
    height: 6px;
    border-radius: 3px;
    margin-top: 5px;
}

.cost-trend {
    text-align: right;
    font-size: 0.9rem;
}

.trend.positive {
    color: var(--success-color);
}

.trend.negative {
    color: var(--danger-color);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .sla-gauge {
        width: 60px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .time-display {
        width: 100%;
        justify-content: space-between;
    }
}

/* Digital Twin Dashboard Specific Styles */
.digital-twin-dashboard {
    --dt-primary: #005f87;
    --dt-primary-light: #3388a8;
    --dt-primary-dark: #003654;
    --dt-secondary: #ff7d00;
    --dt-success: #4CAF50;
    --dt-warning: #FF9800;
    --dt-danger: #F44336;
    --dt-info: #2196F3;
    --dt-purple: #9C27B0;
    --dt-light-gray: #f5f7fa;
    --dt-medium-gray: #e0e0e0;
    --dt-dark-gray: #333;
    --dt-text-color: #444;
    --dt-text-light: #777;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-container {
    padding: 1.5rem;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    color: var(--dt-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#current-time {
    font-weight: 500;
    color: var(--dt-text-light);
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge.operational {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--dt-success);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 380px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-header {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--dt-medium-gray);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.stat-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dt-primary);
}

.stat-header i {
    font-size: 1.1rem;
    color: var(--dt-primary);
}

.stat-content {
    padding: 1.2rem;
    flex-grow: 1;
    overflow-y: auto;
}

/* Flight Status Card */
.flight-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.flight-metrics {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dt-primary);
    line-height: 1;
}

.metric-label {
    display: block;
    color: var(--dt-text-light);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.co2-emission {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--dt-text-light);
}

.flight-chart {
    width: 100%;
    height: 120px;
}

.flight-list {
    margin-top: 1rem;
}

.flight-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dt-light-gray);
    cursor: pointer;
    transition: background-color 0.2s;
}

.flight-item:hover {
    background-color: rgba(0, 95, 135, 0.03);
}

.flight-number {
    font-weight: 600;
    color: var(--dt-primary);
}

.flight-destination {
    font-size: 0.9rem;
    color: var(--dt-text-light);
}

.flight-status {
    font-size: 0.85rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.status-ontime {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--dt-success);
}

.status-delayed {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--dt-warning);
}

/* Turnaround Activity Modal */
.turnaround-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dt-medium-gray);
}

.modal-title {
    font-size: 1.2rem;
    color: var(--dt-primary);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dt-text-light);
}

.activity-item {
    margin-bottom: 1rem;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.activity-name {
    font-weight: 600;
}

.activity-time {
    font-size: 0.9rem;
    color: var(--dt-text-light);
}

.progress-container {
    height: 8px;
    background-color: var(--dt-light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
}

.on-time {
    background-color: var(--dt-success);
}

.delayed {
    background-color: var(--dt-warning);
}

/* Other Card Styles (similar to previous version but more compact) */
.progress-bars {
    margin-top: 1rem;
}

.progress-item {
    margin-bottom: 0.8rem;
}

.sla-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sla-item {
    text-align: center;
}

.sla-gauge {
    width: 60px;
    height: 30px;
    margin: 0 auto 5px;
}

.sla-label {
    font-size: 0.8rem;
    color: var(--dt-text-light);
}

.sla-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dt-primary);
}

.sla-summary {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--dt-medium-gray);
    margin-top: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dt-primary);
    display: block;
    line-height: 1;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--dt-text-light);
}

.ai-recommendation {
    background-color: rgba(33, 150, 243, 0.05);
    border-left: 3px solid var(--dt-info);
    padding: 0.8rem;
    margin-top: 1rem;
    border-radius: 0 4px 4px 0;
}

.recommendation-title {
    font-weight: 600;
    color: var(--dt-info);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recommendation-text {
    font-size: 0.85rem;
    color: var(--dt-text-color);
}

/* Alert and Timeline Styles */
.alert-list {
    padding: 0.3rem 0;
}

.alert-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--dt-medium-gray);
    align-items: flex-start;
}

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

.alert-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.alert-item.critical .alert-icon {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--dt-danger);
}

.alert-item.warning .alert-icon {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--dt-warning);
}

.alert-item.info .alert-icon {
    background-color: rgba(33, 150, 243, 0.1);
    color: var(--dt-info);
}

.alert-content h4 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
}

.alert-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dt-text-light);
}

.alert-time {
    display: block;
    font-size: 0.75rem;
    color: var(--dt-text-light);
    margin-top: 0.2rem;
}

.timeline {
    position: relative;
    padding-left: 25px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--dt-medium-gray);
}

.timeline-item {
    position: relative;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.8rem;
}

.timeline-time {
    width: 45px;
    font-weight: 500;
    color: var(--dt-primary);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.timeline-content {
    flex-grow: 1;
}

.timeline-content h4 {
    margin: 0 0 0.1rem;
    font-size: 0.95rem;
}

.timeline-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--dt-text-light);
}

.timeline-status {
    position: absolute;
    left: 3px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}

.timeline-status.on-time {
    background-color: var(--dt-success);
}

.timeline-status.delayed {
    background-color: var(--dt-warning);
}

/* Weather Card */
.weather-content {
    padding: 0.8rem;
}

.current-weather {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.weather-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 214, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFD600;
}

.weather-details {
    flex-grow: 1;
}

.temperature {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dt-primary);
    display: block;
    line-height: 1;
}

.conditions {
    font-size: 0.9rem;
    color: var(--dt-text-light);
}

.wind-speed {
    font-size: 0.85rem;
    color: var(--dt-text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.weather-forecast {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.forecast-item {
    text-align: center;
    font-size: 0.8rem;
    flex: 1;
}

.forecast-item i {
    display: block;
    font-size: 1.2rem;
    margin: 0.2rem 0;
    color: var(--dt-primary-light);
}

/* Cost Monitoring */
.cost-metric {
    text-align: center;
    margin-bottom: 1rem;
}

.cost-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dt-primary);
    display: block;
    line-height: 1;
}

.cost-label {
    font-size: 0.85rem;
    color: var(--dt-text-light);
}

.cost-breakdown {
    margin-bottom: 0.8rem;
}

.breakdown-item {
    margin-bottom: 0.6rem;
    position: relative;
}

.breakdown-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.breakdown-value {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 600;
    color: var(--dt-primary);
    font-size: 0.9rem;
}
