@keyframes pulsate {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.upload-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    grid-auto-rows: 300px;
}

.upload-panel {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.file-drop-zone {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: white;
    box-sizing: border-box;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.file-drop-zone.dragover { background-color: rgba(var(--primary-rgb), 0.06); border-color: var(--primary-color); }

.file-drop-zone.disabled {
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #bdbdbd;
}

.file-drop-zone.disabled .upload-icon {
    color: #bdbdbd !important; /* Override default color */
    animation: none !important; /* Stop pulsing animation */
}

.upload-selected-files {
    height: 100%;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 0 1px var(--border-color);
    background: var(--background-light);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin: 0;
    text-align: left;
}

.upload-selected-files.disabled {
    background-color: #f5f5f5;
    color: #bdbdbd;
}

.upload-selected-files.disabled .upload-empty-state {
    color: #bdbdbd;
}

.upload-empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.upload-empty-state p {
    margin: 0;
    text-align: center;
}

.upload-file-list {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
}

.upload-file-item { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); gap: 0.75rem; text-align: left; }

.upload-file-item:last-child {
    border-bottom: none;
}

.upload-file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    flex-grow: 1;
    min-width: 0;
}

.upload-file-info .material-icons { font-size: 1.2rem; color: var(--text-secondary); flex-shrink: 0; }

.upload-file-name {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 50px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.upload-file-pages { white-space: nowrap; font-size: 0.8rem; color: var(--text-secondary); background-color: #f0f0f0; padding: 0.1rem 0.4rem; border-radius: 4px; flex-shrink: 0; }

.upload-remove-file {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 50%;
    flex-shrink: 0;
}

.upload-remove-file:hover {
    color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.1);
}

.upload-remove-file .material-icons {
    font-size: 1.1rem;
    vertical-align: middle;
}

.upload-drop-zone .material-icons {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: pulsate 2s ease-in-out infinite;
}

.file-drop-zone .upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulsate 2s ease-in-out infinite;
}

.upload-empty-state .material-icons {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    align-self: center;
}

@media (max-width: 768px) {
    .upload-panels {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .upload-panel {
        min-height: 250px;
    }

    .upload-file-list {
        max-height: 250px;
    }
} 