/* General Body & Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #0056b3;
}

p {
    margin-bottom: 1rem;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

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

input[type="password"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="password"]:focus,
select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    background-color: #007bff;
    color: #ffffff;
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.button-secondary {
    background-color: #6c757d;
}

.button-secondary:hover {
    background-color: #5a6268;
}

.controls-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-bottom: 2rem;
}

/* Results & Comparison */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.results-column {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1.5rem;
}

.results-column h3 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

#results-private h3 { border-color: #28a745; }
#results-potentially_public h3 { border-color: #ffc107; }
#results-no_block_set h3 { border-color: #dc3545; }

.result-item {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    animation: fadeIn 0.5s ease-in-out;
}

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

.result-item small {
    color: #6c757d;
}

#comparison-section, #info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

#comparison-results ul {
    list-style-type: none;
    padding-left: 0;
}

#comparison-results li {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Utility & Messages */
.error-message {
    color: #dc3545;
    font-weight: 600;
    margin-top: 0.5rem;
}

.scan-summary {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 1.5rem 0;
}

/* Keyframes for animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}