/* Admin-specific styles - clean interface */
body {
    background-color: #f5f5f5;
    color: #333;
}

.admin-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ddd;
}

.admin-header h1 {
    font-size: 2rem;
    color: #2c3e50;
}

.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* For larger screens, use a two-column layout for the smaller sections */
@media (min-width: 1024px) {
    .admin-sections {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.admin-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-section-full {
    margin-bottom: 2rem;
}

.admin-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.section-header-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.section-header-toggle:hover {
    color: #3498db;
}

.section-header-toggle i {
    font-size: 1rem;
    transition: transform 0.3s;
}

.admin-section form {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-section input {
    padding: 0.75rem;
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex: 1;
    font-size: 1rem;
}

.admin-section input:focus {
    outline: none;
    border-color: #3498db;
}

.admin-section .btn {
    background-color: #3498db;
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.admin-section .btn:hover {
    background-color: #2980b9;
}

#rates-list, #search-result, #insert-result {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    min-height: 50px;
}

.rate-item, .plate-item {
    padding: 1rem;
    margin: 0.5rem 0;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rate-item span, .plate-item div {
    font-size: 1rem;
}

.btn-delete, .btn-edit {
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-delete {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-delete:hover {
    background-color: #e74c3c;
    color: white;
}

.btn-edit {
    border-color: #f39c12;
    color: #f39c12;
}

.btn-edit:hover {
    background-color: #f39c12;
    color: white;
}

/* Action buttons for records section */
#records-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

#records-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: opacity 0.3s;
}

#records-actions .btn:hover {
    opacity: 0.8;
}
