body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 20px;
    color: #333;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
header a { color: #ecf0f1; margin-left: 15px; }
.controls button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    background: #ecf0f1;
}
.controls button:hover { background: #3498db; color: white; }

#content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
th { background: #f8f9fa; }
tr.problem { background: #ffdddd !important; }
tr.inactive { opacity: 0.55; }

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.error { color: #c0392b; margin-top: 10px; font-weight: 500; }

.btn-add {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 15px;
}
.btn-add:hover { background: #219150; }
.btn-edit {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.btn-edit:hover { background: #2980b9; }
.btn-primary {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-primary:hover { background: #219150; }
.btn-secondary {
    background: #bdc3c7;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-secondary:hover { background: #95a5a6; }

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    padding: 25px 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.modal-content .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.modal-content .close:hover { color: #333; }
.modal-content label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-weight: 500;
}
.modal-content .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-weight: normal;
}
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    background: white;
}
.modal-actions {
    margin-top: 22px;
    display: flex;
    gap: 10px;
}
.modal-actions button {
    flex: 1;
}
