/* Layout principale */
.rs-card-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Form di ricerca */
.rs-search-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rs-search-form h2 {
    margin-top: 0;
    color: #2271b1;
    font-size: 1.5rem;
}

.rs-search-form form {
    display: flex;
    gap: 10px;
}

.rs-search-form input[type="text"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.rs-search-form button {
    padding: 0.75rem 1.5rem;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.rs-search-form button:hover {
    background: #135e96;
}

/* Dettagli card */
.rs-card-details {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
}

.rs-card-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.rs-card-section h4 {
    margin-top: 0;
    color: #2271b1;
}

/* Form elementi */
.rs-form-group {
    margin-bottom: 1rem;
}

.rs-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rs-form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Messaggi */
.rs-error,
.rs-message .success,
.rs-message .error,
.rs-message .updating {
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.rs-error {
    color: #d63638;
    background: #fef0f0;
    border-color: #d63638;
}

.rs-message .success {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #0f5132;
}

.rs-message .error {
    color: #d63638;
    background: #fef0f0;
    border-color: #d63638;
}

.rs-message .updating {
    color: #2271b1;
    background: #f0f6ff;
    border-color: #2271b1;
}

/* Bottoni */
button[type="submit"] {
    background: #2271b1;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #135e96;
}

/* Responsive */
@media (max-width: 768px) {
    .rs-card-container {
        padding: 1rem;
        margin: 1rem;
    }

    .rs-search-form form {
        flex-direction: column;
    }
}