/* --- step3-upload-style.css --- */

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    background-color: var(--background-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area.dragover {
    background-color: #ede9fe; /* Use a primary theme color */
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.upload-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.6;
    pointer-events: none; /* Allows clicks to pass through to the parent */
}

.upload-label i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.upload-preview {
    margin-top: 1.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.file-preview {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.file-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.file-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-name {
    font-size: 0.8rem;
    color: var(--text-primary);
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em; /* Approx 2 lines */
}

.remove-file-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger-500);
    color: white;
    border: 2px solid var(--card-background);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.2s ease;
}

.remove-file-btn:hover {
    transform: scale(1.1);
}
.submission-type-grid .choice-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.file-input-field {
  display: block;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-family);
  background-color: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-field:hover {
  border-color: var(--primary-400);
  background-color: var(--primary-50);
}

.file-input-field:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
  background-color: #fff;
}
.link-input-field {
  display: block;
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-size: 1rem;
  font-family: var(--font-family);
  background-color: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.link-input-field::placeholder {
  color: var(--text-muted);
}

.link-input-field:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
  background-color: white;
}
.file-input-field,
.link-input-field {
  margin-bottom: 1.25rem;
}
/* --- popups.css (For Loading & Success Animations) --- */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-spinner {
    border: 5px solid #e5e7eb;
    border-top: 5px solid #4f46e5; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

#loading-text {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #111827;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Popup (already working, but good to have here) */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.popup-overlay.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 0.75rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d1fae5; /* Light Green */
    color: #065f46; /* Dark Green */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
}

.popup-content h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
    color: #111827;
}

.popup-content p {
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.countdown-timer {
    font-weight: 500;
    color: #4f46e5; /* Blue */
}