body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-top: 20px; /* Add some padding at the top */
    padding-bottom: 20px; /* Add padding at the bottom for scroll */
    box-sizing: border-box;
}

#app-logo {
    display: block;
    margin: 0 auto 20px auto; /* Center the logo and add bottom margin */
    max-width: 150px; /* Adjust size as needed */
    height: auto;
}

.container {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: #0056b3;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect overall width */
}

.form-group select[multiple] {
    height: 120px; /* Adjust height to show a few options */
    padding: 5px; /* Slightly adjust padding for multi-select */
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

#search-results {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    border: 1px solid #ced4da;
    text-align: left;
}

#search-results p {
    margin-bottom: 10px; /* Adjusted for general p, specific for summary */
}
#search-results p:last-child {
    margin-bottom: 0;
}

.company-card {
    background-color: #f8f9fa; /* Lighter grey for cards */
    border: 1px solid #dee2e6; /* Softer border */
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Subtle shadow */
}

.company-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0056b3; /* Consistent with h1 */
    font-size: 1.2em;
}

.company-card p {
    margin-bottom: 5px;
    font-size: 0.95em;
    line-height: 1.5;
}

.company-card p strong {
    color: #343a40; /* Darker text for strong elements */
}

.company-card p.dividend-info {
    margin-top: 8px;
    font-style: italic;
    color: #495057; /* A slightly muted color for this info */
    background-color: #e9ecef; /* Light background to make it stand out a bit */
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.company-card p.dividend-info strong {
    font-style: normal; /* Keep the "Dividendos:" part normal */
    color: #343a40;
}

#search-results h2 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 10px; /* Adjusted margin */
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    text-align: left; /* Ensure h2 is also left-aligned */
}

/* New styles for summary and padded results */
.results-summary {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px !important; /* Ensure this applies over generic p */
    background-color: #fffbef;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ffeeba;
}

.results-summary strong {
    color: #333; /* Make filter criteria stand out in summary */
}

.company-card.padded-result {
    border-left: 4px solid #ffc107; /* Yellow border for padded results */
    background-color: #fffcf5; /* Slightly different background for padded results */
}

.padded-indicator {
    font-size: 0.75em;
    font-weight: normal;
    color: #856404; /* Dark yellow, legible on light background */
    background-color: #fff3cd; /* Light yellow background for indicator */
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    width: 100%;
    max-width: 600px;
}

footer p {
    margin: 0;
    color: #555;
    font-size: 0.9em;
}

footer a {
    color: #0056b3;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}