/* General Body Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    margin: 0;
}

/* App Header */
.app-header {
    background-color: #fff;
    color: #333;
    padding: 0 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.app-header .title {
    font-size: 24px;
    font-weight: 500;
}

.theme-toggle {
    cursor: pointer;
    margin-left: auto; /* Pushes the toggle to the right */
    margin-right: 16px;
}

.theme-toggle .material-icons {
    font-size: 24px;
}

.menu-container {
    position: relative;
    margin-left: auto;
}

.menu-button {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-button.open {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background-color: var(--card-background-color);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
    width: 160px;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
}

.dropdown-menu a:hover {
    background-color: rgba(0,0,0,0.05);
}

.app-header .back-arrow {
    color: #333;
    text-decoration: none;
    margin-right: 16px;
    vertical-align: middle;
}

/* Main Container */
.container {
    padding: 24px;
}

/* Cards */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 24px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    background-color: #1976d2;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1565c0;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-flat {
    background-color: transparent;
    color: #1976d2;
    box-shadow: none;
}

.btn-flat:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Status Indicators */
.status-good {
    color: #4CAF50;
    font-weight: 500;
}

.status-problem {
    color: #F44336;
    font-weight: 500;
}

.status-circle {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-circle-good {
    background-color: #4CAF50;
}

.status-circle-problem {
    background-color: #F44336;
}

/* Device Grid */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.device-card {
    text-decoration: none;
    color: inherit;
}

.device-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* List */
.list-item {
    text-decoration: none;
    color: inherit;
}

.list-item .card:hover {
    background-color: #f0f0f0;
}

/* FAB */
.fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 16px;
    }
    .card {
        padding: 16px;
    }
    .device-grid {
        grid-template-columns: 1fr;
    }
}
