body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    display: flex;
}

 /* Sidebar */ 
.sidebar {
    width: 220px;
    background: #020617;
    height: 100vh;
    padding: 20px;
}

.sidebar h2 {
    margin-bottom: 20px;
}

.menu-item {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
}

.menu-item:hover {
    background: #1e293b;
}

 /* Main */ 
.main {
    flex: 1;
    padding: 20px;
}

.active {
    display: block;
}

canvas {
    background: #1e293b;
    padding: 10px;
    border-radius: 8px;
}

#liveFeed div {
    padding: 8px;
    margin: 5px 0;
    border-radius: 6px;
    background: #1e293b;
}

.stream-actions {
    display: flex;
    gap: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    padding: 6px 12px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 140px;
    border: 1px solid #ccc;
    z-index: 999;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.dropdown-content a:hover {
    background: #f0f0f0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    width: 80%;
    max-height: 80vh;
    overflow-y: auto;
    margin: 40px auto;
    padding: 20px;
}

.dashboard-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.dashboard-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
}

.chart-card {
    flex: 2;
}

.top-card {
    flex: 1;
}

#topSamples {
    list-style: none;
    padding: 0;
    margin: 0;
}

#topSamples li {
    padding: 10px 0;
    border-bottom: 1px solid #334155;
}

@media (max-width: 768px) {

    .dashboard-row {
flex-direction: column;
    }

    .chart-card,
    .top-card {
width: 100%;
    }

}

#fileScanningSection {

    margin-top: 40px;
}

.scanCard {

    background: #1e293b;

    padding: 20px;

    border-radius: 12px;

    margin-bottom: 20px;
}

.scanCard input {

    margin-bottom: 12px;
}

.scanJob {

    background: #334155;

    padding: 14px;

    border-radius: 10px;

    margin-bottom: 12px;

    cursor: pointer;
}

.scanResult {

    background: #1e293b;

    padding: 16px;

    border-radius: 10px;

    margin-bottom: 14px;
}

.scanEvidence audio {

    width: 220px;

    margin-top: 10px;
}

#scanBucket {

    width: 100%;

    padding: 12px;

    margin-top: 10px;

    margin-bottom: 10px;

    border-radius: 8px;

    border: 1px solid #334155;

    background: #0f172a;

    color: white;

    font-size: 14px;
}

#scanBucket option {

    background: #0f172a;

    color: white;
}

.scanCard {

    display: flex;

    gap: 10px;

    align-items: center;

    flex-wrap: wrap;

    margin-bottom: 20px;
}

.scanCard input[type="file"] {

    flex: 1;

    min-width: 220px;
}

#scanBucket {

    width: 220px;

    padding: 10px;

    border-radius: 8px;

    border: 1px solid #334155;

    background: #0f172a;

    color: white;
}

.scanCard button {

    white-space: nowrap;
}

.scanToggleBtn {

    cursor: pointer;
}

.scanResultsContainer {

    margin-top: 15px;
}

.scanEmpty {

    padding: 12px;

    opacity: 0.7;

    font-style: italic;
}

#proj_bucket {
    min-width: 220px;
}
