body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    background: #f4f4f4;
    color: #333;
}

h1 {
    text-align: center;
}

#data-container {
    margin-top: 20px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.device {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

    .device:last-child {
        border-bottom: none;
    }

/* Login Page Styles */
.login-container {
    background-color: #1e293b;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
    margin-top: 10vh;
    color: #fff;
}

    .login-container h1 {
        margin-bottom: 1.5rem;
        font-size: 1.75rem;
        color: #e2e8f0;
    }

    .login-container input {
        width: 100%;
        padding: 0.75rem;
        margin-bottom: 1rem;
        border: none;
        border-radius: 0.5rem;
        font-size: 1rem;
    }

    .login-container button {
        width: 100%;
        padding: 0.75rem;
        background-color: #3b82f6;
        color: white;
        font-size: 1rem;
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
    }

        .login-container button:hover {
            background-color: #2563eb;
        }

#error-msg {
    margin-top: 0.5rem;
    color: #f87171;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1e293b;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

    .navbar .logo {
        font-weight: bold;
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

    .nav-links li {
        cursor: pointer;
    }

/* Dashboard layout */
.dashboard {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

    .stat-card h4 {
        margin-bottom: 0.5rem;
        font-weight: normal;
        font-size: 0.95rem;
        color: #888;
    }

.stat-number {
    font-size: 2rem;
    font-weight: bold;
}

/* Panels below stats */
.main-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.panel {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
}

#mac-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

    #mac-list li {
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
        font-family: monospace;
    }

        #mac-list li:last-child {
            border-bottom: none;
        }

/* Time Filter Dropdown */
.time-filter {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

    .time-filter label {
        font-weight: 500;
    }

    .time-filter select {
        padding: 0.5rem 1rem;
        border-radius: 6px;
        border: 1px solid #ccc;
        font-size: 1rem;
        background: #fff;
        color: #333;
    }



/* Responsive tweaks */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .stats, .main-panels {
        flex-direction: column;
    }

    #export-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }
}
