/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

/* Main container for centering content */
main {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

h1 {
    color: #1a237e;
    margin: 0;
}

h2 {
    color: #283593;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="number"],
input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3f51b5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #303f9f;
}

button:disabled {
    background-color: #9fa8da;
    cursor: not-allowed;
}


/* Results Section Styling */
#results-container {
    margin-top: 40px;
    border-top: 2px solid #3f51b5;
    padding-top: 20px;
}

#summary {
    background-color: #e8eaf6;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Use a monospace font for the preformatted text to align columns */
#signatures-table {
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    overflow-x: auto;
}


/* Helper class to hide/show elements */
.hidden {
    display: none;
}

/* Loader Styling */
#loader {
    text-align: center;
    margin-top: 30px;
    font-weight: 600;
    color: #3f51b5;
}

/* Style for the new explanatory text */
.explanation {
    font-size: 0.95em;
    color: #555;
    background-color: #f8f9fa;
    border-left: 4px solid #3f51b5;
    padding: 10px 15px;
    margin-top: -5px;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

/* Style for the LLM summary box to make it scrollable */
#summary {
    background-color: #e8eaf6;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-style: italic;
    white-space: pre-wrap; /* Ensures text wraps */
    max-height: 150px;     /* Limits the height */
    overflow-y: auto;      /* Adds a scrollbar if content overflows */
}

/* Style for the new download button */
#download-csv-button {
    background-color: #1e88e5; /* A different color */
    margin-bottom: 20px;
}

#download-csv-button:hover {
    background-color: #1565c0;
}

/* Styling for the new toggle switch */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #3f51b5;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.logo {
    max-width: 250px; /* You can adjust this size if you want */
    margin: 0 auto 15px; /* Centers the logo and adds some space below it */
    display: block;
}
