:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #ecf0f1;
    --card-background: #ffffff;
    --text-color: #34495e;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color) !important;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1 {
    color: var(--primary-color);
    text-align: center;
}

p {
    text-align: center;
    margin-bottom: 20px;
}

.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.input-group, .file-input-group {
    margin-bottom: 20px;
}

.input-group label, .file-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.file-input-group label span {
    display: block;
    font-weight: normal;
    font-size: 0.9em;
    color: #7f8c8d;
}

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="file"] {
    padding: 3px;
}

button, .button {
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s;
}

button:hover, .button:hover {
    background-color: #2980b9;
}

#download-link {
    margin-top: 15px;
    background-color: #27ae60;
}

#download-link:hover {
    background-color: #229954;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: #fff;
    padding: 6rem 0;
}
.hero h1, .hero p {
    color: #fff;
}
.hero .btn-primary {
    background-color: #fff;
    color: #3498db;
    border: none;
}
.hero .btn-primary:hover {
    background-color: #e4e7ea;
    color: #2c3e50;
}

/* Custom Multi-select styling */
.custom-multiselect {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-multiselect:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.15);
    transform: translateY(-1px);
}

.custom-multiselect:focus-within {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
    transform: translateY(-1px);
}

.custom-multiselect-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 8px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    outline: none;
    width: 100%;
    min-height: 140px;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
}

/* Webkit scrollbar styling for multiselect */
.custom-multiselect-input::-webkit-scrollbar {
    width: 6px;
}

.custom-multiselect-input::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-multiselect-input::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3498db, #2c3e50);
    border-radius: 3px;
}

.custom-multiselect-input::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2980b9, #34495e);
}

.custom-multiselect-input option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
    background-color: #ffffff;
    color: #2c3e50;
    border: none;
}

.custom-multiselect-input option:hover {
    background: linear-gradient(135deg, #ecf0f1, #d5dbdb);
    color: #2c3e50;
    cursor: pointer;
    transform: scale(1.02);
}

.custom-multiselect-input option:hover:not(:checked):after {
    content: " ✓";
    color: #27ae60;
    font-weight: bold;
}

.custom-multiselect-input option:hover:checked:after {
    content: " ✗";
    color: #e74c3c;
    font-weight: bold;
}

.custom-multiselect-input option:checked {
    background: linear-gradient(135deg, #3498db, #2c3e50) !important;
    color: #ffffff !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.custom-multiselect-input option:checked:before {
    content: "✓ ";
    color: #ffffff;
    font-weight: bold;
    margin-right: 4px;
}

.custom-multiselect-input option:checked:hover {
    background: linear-gradient(135deg, #2980b9, #34495e) !important;
}

.custom-multiselect-input:disabled {
    background-color: #f8f9fa !important;
    opacity: 0.7;
    cursor: not-allowed;
}

.custom-multiselect:has(.custom-multiselect-input:disabled) {
    border-color: #dee2e6;
    box-shadow: none;
    transform: none;
}

.custom-multiselect:has(.custom-multiselect-input:disabled):hover {
    border-color: #dee2e6;
    box-shadow: none;
    transform: none;
}

/* Enhanced form text styling */
.form-text {
    color: #6c757d;
    font-size: 0.82rem;
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
}

.form-text i {
    color: #3498db;
    font-size: 0.9rem;
}

/* Label enhancements */
.form-label.fw-semibold {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-label.fw-semibold i {
    color: #3498db;
    font-size: 1rem;
}

/* Animation for options */
@keyframes optionSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.custom-multiselect-input option:checked {
    animation: optionSelect 0.2s ease-out;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .custom-multiselect-input {
        font-size: 0.85rem;
        min-height: 120px;
    }
    
    .form-text {
        font-size: 0.78rem;
    }
}