/* Base styles */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --accent-color: #FF5722;
    --text-color: #212121;
    --secondary-text: #757575;
    --divider-color: #BDBDBD;
    --background-color: #F5F5F5;
    --card-color: #FFFFFF;
    --status-green: #4CAF50;
    --status-yellow: #FFC107;
    --status-red: #F44336;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    max-width: 100vw;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
}

#menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--card-color);
    box-shadow: var(--shadow);
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

nav.visible {
    transform: translateX(0);
}

nav.hidden {
    transform: translateX(-100%);
}

#close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul {
    list-style: none;
    padding: 3rem 0 0 0;
}

nav li {
    padding: 0;
}

nav a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--divider-color);
}

nav a:hover, nav a:focus {
    background-color: var(--primary-light);
}

/* Main content */
main {
    padding: 1rem;
    margin-bottom: 4rem; /* Space for FAB */
}

/* Cards */
.card {
    background-color: var(--card-color);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

/* Lists */
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--divider-color);
    cursor: pointer;
}

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

.list-item:hover {
    background-color: var(--primary-light);
}

/* Status indicators */
.status {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: inline-block;
}

.status-green {
    background-color: var(--status-green);
}

.status-yellow {
    background-color: var(--status-yellow);
}

.status-red {
    background-color: var(--status-red);
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--divider-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Buttons */
button {
    cursor: pointer;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.2s;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--divider-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #A9A9A9;
}

.btn-danger {
    background-color: var(--status-red);
    color: white;
}

.btn-danger:hover {
    background-color: #D32F2F;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.btn-group button {
    flex: 1;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.fab:hover {
    background-color: #E64A19;
}

/* Utilities */
.hidden {
    display: none;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-text);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    nav {
        width: 300px;
    }
    
    main {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Animation for status changes */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-changed {
    animation: pulse 0.5s;
}

