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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
    margin-bottom: 15px;
    color: #2c3e50;
}

nav {
    display: flex;
    gap: 10px;
}

nav button {
    padding: 10px 20px;
    border: none;
    background: #ecf0f1;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

nav button.active {
    background: #3498db;
    color: white;
}

nav button:hover {
    background: #3498db;
    color: white;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.toolbar {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toolbar input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.toolbar button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.toolbar button:hover {
    background: #2980b9;
}

.form-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-container.hidden {
    display: none;
}

.form-container h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-container label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-container input,
.form-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.form-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.form-buttons button[type="submit"] {
    background: #27ae60;
    color: white;
}

.form-buttons button[type="submit"]:hover {
    background: #229954;
}

.form-buttons button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-buttons button[type="button"]:hover {
    background: #7f8c8d;
}

.data-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-item {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

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

.data-item h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.data-item p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 4px 0;
}

.data-item strong {
    color: #555;
}

.autocomplete-results {
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
}

.autocomplete-results.active {
    display: block;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ecf0f1;
}

.autocomplete-item:hover {
    background: #ecf0f1;
}

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

.selected-item {
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: none;
}

.selected-item.active {
    display: block;
}

.selected-item strong {
    color: #27ae60;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #3498db;
}

.error {
    background: #e74c3c;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success {
    background: #27ae60;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    nav {
        flex-direction: column;
    }
}
