* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    padding: 20px;
    
    background: linear-gradient(145deg, #008bb9, #0044c1);
    background: -moz-linear-gradient(145deg, #008bb9 0%, #0044c1 100%);
    background: -webkit-linear-gradient(145deg, #008bb9 0%, #0044c1 100%);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

h3 {
    text-align: center;
    color: #007bff;
    margin-bottom: 10px;
    font-size: 18px;
}

.step {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    background: #f8f9fa;
}

.step h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.step:not(.active) {
    opacity: 0.6;
    pointer-events: none;
}

.file-input-section {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: bold;
}

input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
}

.buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #0056b3;
}

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

.assignment-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: none;
}

.assignment-container.active {
    display: block;
}

.assignment-list {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: white;
}

.assignmentItem {
    padding: 12px 15px;
    margin: 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.assignmentItem:last-child {
    border-bottom: none;
}

.assignmentItem:hover {
    background: #f0f7ff;
}

.assignmentItem.selected {
    background: #e3f2fd;
    font-weight: bold;
}

.badge {
    background: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.no-assignments {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.step-section {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 16px;
    color: #0056b3;
    margin-bottom: 10px;
    text-align: left;
}

.section-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.draggable-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.draggable {
    padding: 10px 18px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: move;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.draggable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.draggable:active {
    transform: translateY(0);
}

.draggable.inactive {
    background: #6c757d;
    opacity: 0.7;
}

#status {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
}

#unmatchedFilesList {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.status-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.success {
    background: #d4edda;
    color: #155724;
}

.warning {
    background: #fff3cd;
    color: #856404;
}

.error {
    background: #f8d7da;
    color: #721c24;
}

.file-input-toggle {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.file-input-toggle label {
    display: inline-block;
    cursor: pointer;
    font-weight: normal;
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.file-input-toggle input[type="radio"] {
    margin-right: 5px;
}

.file-input-toggle input[type="radio"]:checked + span {
    font-weight: bold;
}

.file-input-toggle label:has(input[type="radio"]:checked),
.file-input-toggle input[type="radio"]:checked ~ label {
    background: #d9e8ff;
}

.input-container {
    display: none;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.input-container.active {
    display: block;
}

.input-container p {
    margin-top: 0;
    margin-bottom: 10px;
    color: #555;
    font-style: italic;
}

.action-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.action-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}

.action-button:hover {
    background: #218838;
    transform: translateY(-2px);
}

.action-button:active {
    transform: translateY(0);
}

.action-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}