body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f6f9;
}


/* Mobile Fixes */
@media (max-width: 768px) {
    input, select, button {
        width: 100% !important;
        margin: 10px 0;
        padding: 15px;
        font-size: 16px; /* Prevents zoom */
        box-sizing: border-box;
    }
    
    .setup-box, .form-section {
        padding: 20px;
    }
    
    .controls, .daa-buttons {
        flex-direction: column;
    }
    
    .daa-btn {
        width: 100%;
        margin: 5px 0;
    }
}
/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #4e4ee7;
    color: white;
    padding: 15px 30px;
}

/* DASHBOARD */
.dashboard {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card h3 {
    margin: 0;
}

.card p {
    font-size: 22px;
    margin-top: 10px;
    font-weight: bold;
}

/* FORM */
.form-section {
    padding: 20px;
}

form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

form input, form select, form button {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    background: #4752be;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #2412e7;
}

/* TABLE */
.table-section {
    padding: 20px;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background: #4e4ee7;
    color: white;
}

/* CHARTS */
.charts {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.chart-box {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 12px;
}



/* step 2.5 for pop up*/
.setup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.setup-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
}

.setup-box input {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
}

/* 🚨 Alerts Box */
.alerts {
    margin: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 5px solid #ff9800;
    border-radius: 8px;
}

/* 🔮 Prediction Box */
.prediction {
    margin: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
    border-radius: 8px;
}

/* 🔍 Controls (Search + Sort) */
.controls {
    margin: 20px;
    display: flex;
    gap: 10px;
}
/*.monthly track*/
.monthly {
    margin: 20px;
    padding: 15px;
    background: #f1f8e9;
    border-left: 5px solid #4caf50;
}

/* 🧠 DAA Section Styles */
.daa-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.daa-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.daa-budget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 15px;
}

.daa-budget input {
    background: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    width: 150px;
}

.daa-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.daa-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.daa-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.daa-btn.greedy { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); }
.daa-btn.dp { background: linear-gradient(45deg, #4ecdc4, #6ee7db); }
.daa-btn.dijkstra { background: linear-gradient(45deg, #45b7d1, #74c0fc); }
.daa-btn.demo { background: linear-gradient(45deg, #f093fb, #f5576c); }

.daa-result {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-height: 150px;
    overflow-y: auto;
}

/* Reset Button */
.reset-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.reset-btn:hover {
    background: #ff5252;
}