#reef-aquarium-app {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
}

#reef-header {
    background: #2e7d32;
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5em;
    margin-bottom: 20px;
}

#reef-header a {
    color: #ffffff;
    text-decoration: none;
}

#reef-header a:hover {
    text-decoration: underline;
}

#reef-header .user-info {
    font-size: 0.8em;
}

#reef-header .logout-link {
    margin-left: 10px;
}

.reef-container {
    display: flex;
}

.reef-sidebar {
    width: 200px;
    background: #ffca28;
    padding: 20px;
    border-right: 1px solid #ddd;
}

.reef-sidebar select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.reef-content {
    flex: 1;
    padding: 20px;
    background: #ffffff;
}

.reef-section {
    display: none;
}

.reef-section.active {
    display: block;
}

.reef-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.reef-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.reef-form .input-group {
    display: flex;
    gap: 10px;
}

.reef-form select,
.reef-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #4caf50;
    border-radius: 4px;
    box-sizing: border-box;
}

.reef-form button {
    background: #4caf50;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.reef-form button:hover {
    background: #45a049;
}

#log-entries {
    margin-top: 20px;
}

.log-entry {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.log-entry button {
    background: #dc3232;
    color: #ffffff;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.log-entry button:hover {
    background: #b32d2e;
}

.reference-values table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.reference-values th,
.reference-values td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.reference-values th {
    background: #f2f2f2;
}

#parameter-trends {
    margin-top: 20px;
}

#trend-chart {
    max-height: 200px;
}

.calc-result {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.calc-status {
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.optimal {
    background: #d4edda;
    color: #155724;
}

.low {
    background: #f8d7da;
    color: #721c24;
}

.high {
    background: #fff3cd;
    color: #856404;
}

.disabled-input {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}